You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addTemplateFormats used to allow an array as the first argument, but now it does not.
Reproduction steps
Add multiple template formats using an array
// in eleventy.config.jseleventyConfig.addTemplateFormats(["txt","text"])
try with alpha.6
npm install @11ty/eleventy@3.0.0-alpha.6
npx eleventy
# [11ty] Wrote 0 files in 0.01 seconds (v3.0.0-alpha.6)
try with alpha.7, alpha.8, alpha.9
npm install @11ty/eleventy@3.0.0-alpha.9
npx eleventy
# [11ty] entry.trim is not a function (via TypeError)# [11ty] # [11ty] Original error stack trace: TypeError: entry.trim is not a function# [11ty] at file:///usr/chee/tmp/eleventytest/node_modules/@11ty/eleventy/src/Util/ProjectTemplateFormats.js:28:40# [11ty] at Array.map (<anonymous>)# [11ty] at #normalize (file:///usr/chee/tmp/eleventytest/node_modules/@11ty/eleventy/src/Util/ProjectTemplateFormats.js:28:19)# [11ty] at ProjectTemplateFormats.addViaConfig (file:///usr/chee/tmp/eleventytest/node_modules/@11ty/eleventy/src/Util/ProjectTemplateFormats.js:101:43)# [11ty] at TemplateConfig.mergeConfig (file:///usr/chee/tmp/eleventytest/node_modules/@11ty/eleventy/src/TemplateConfig.js:426:25)# [11ty] at async TemplateConfig.init (file:///usr/chee/tmp/eleventytest/node_modules/@11ty/eleventy/src/TemplateConfig.js:186:17)# [11ty] at async Eleventy.initializeConfig (file:///usr/chee/tmp/eleventytest/node_modules/@11ty/eleventy/src/Eleventy.js:160:3)
Expected behavior
to be like before
Reproduction URL
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered:
Operating system
macOS 14.4.1 (23E224)
Eleventy
3.0.0-alpha.6 vs 3.0.0-alpha.7
Describe the bug
addTemplateFormats
used to allow an array as the first argument, but now it does not.Reproduction steps
Add multiple template formats using an array
try with alpha.6
npm install @11ty/eleventy@3.0.0-alpha.6 npx eleventy # [11ty] Wrote 0 files in 0.01 seconds (v3.0.0-alpha.6)
try with alpha.7, alpha.8, alpha.9
Expected behavior
to be like before
Reproduction URL
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: