Eleventy 3.0 Released (and in use here!)

This is just a quick note to let my readers know that Eleventy 3.0 has been released. This is a huge update and folks using it should read the full release notes here: Eleventy v3.0.0: Possums ❤️ ESM.I’ve been running a be…


This content originally appeared on Raymond Camden and was authored by Raymond Camden

This is just a quick note to let my readers know that Eleventy 3.0 has been released. This is a huge update and folks using it should read the full release notes here: Eleventy v3.0.0: Possums ❤️ ESM.

I've been running a beta for a while. You can see the issues I ran into here: Upgraded to Eleventy 3.0 (Beta). I upgraded to the final version yesterday and ran into one issue, a template that output to a path without an extension. This was very clearly detailed in the error I got:

[11ty] Problem writing Eleventy templates:[11ty] The template at './src/webfinger.liquid' attempted to write to './_site/.well-known/webfinger' (via `permalink` value: '.well-known/webfinger'), which is a target on the file system that does not include a file extension.[11ty][11ty] You *probably* want to add a file extension to your permalink so that hosts will know how to correctly serve this file to web browsers. Without a file extension, this file may not be reliably deployed without additional hosting configuration (it won’t have a mime type) and may also cause local development issues if you later attempt to write to a subdirectory of the same name.[11ty][11ty] Learn more: https://v3.11ty.dev/docs/permalinks/#trailing-slashes[11ty][11ty] This is usually but not *always* an error so if you’d like to disable this error message, add `eleventyAllowMissingExtension: true` somewhere in the data cascade for this template or use `eleventyConfig.configureErrorReporting({ allowMissingExtensions: true });` to disable this feature globally.

And since I did want it write without an extension, I added the value suggested:

---permalink: '.well-known/webfinger'eleventyExcludeFromCollections: trueeleventyAllowMissingExtension: true---

And that was literally it. I did take the opportunity to upgrade two remaining serverless functions to ESM and that took about an hour or so, mostly due to non-Eleventy issues. I didn't have to update them but I was tired of the errors.

Now that 3.0 is shipped, I'm planning on doing an intro to it on my <Code><Br> show later this fall.


This content originally appeared on Raymond Camden and was authored by Raymond Camden


Print Share Comment Cite Upload Translate Updates
APA

Raymond Camden | Sciencx (2024-10-02T18:00:00+00:00) Eleventy 3.0 Released (and in use here!). Retrieved from https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/

MLA
" » Eleventy 3.0 Released (and in use here!)." Raymond Camden | Sciencx - Wednesday October 2, 2024, https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/
HARVARD
Raymond Camden | Sciencx Wednesday October 2, 2024 » Eleventy 3.0 Released (and in use here!)., viewed ,<https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/>
VANCOUVER
Raymond Camden | Sciencx - » Eleventy 3.0 Released (and in use here!). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/
CHICAGO
" » Eleventy 3.0 Released (and in use here!)." Raymond Camden | Sciencx - Accessed . https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/
IEEE
" » Eleventy 3.0 Released (and in use here!)." Raymond Camden | Sciencx [Online]. Available: https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/. [Accessed: ]
rf:citation
» Eleventy 3.0 Released (and in use here!) | Raymond Camden | Sciencx | https://www.scien.cx/2024/10/02/eleventy-3-0-released-and-in-use-here/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.