New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout file changes not reflected until restart #2717
Comments
This was fixed in Eleventy 2.0.0-canary.24, thank you! (Would love a confirmation from you though!) |
|
Thanks, I tested it with the new version. It works fine with the default input directory |
Ah, hmm. Confirmed this, looking now. |
Missed one cache key in there, sorry about that! This will be packaged up with 2.0.0-canary.25 |
Now it works correctly 🥳 Thanks for fixing it |
Operating system
macOS Monterey 12.0
Eleventy
2.0.0-canary.23
Describe the bug
When making a change in a layout file (
.njk
), the changes are not reflected until I restart Eleventy. Eleventy detects that the file has changed (File changed: ...
in the terminal) and updates all pages, but it looks like it uses a cached version of the layout file.The last version with which it worked was
canary.20
. Canary 21 added incremental builds for layout file changes (see #108 (comment)), so I guess that broke the non-incremental setup...Reproduction steps
eleventy --serve
base.njk
that is used inindex.md
=> Changes not visible in the browserExpected behavior
Eleventy should write all pages with the updated layout file instead of the cached one.
Reproduction URL
https://github.com/rothsandro/repro.eleventy-layouts
Screenshots
No response
The text was updated successfully, but these errors were encountered: