-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
With --serve, changing a partial triggers a rebuild but doesn't use the updated partial #7
Comments
This is a problem when using handlebars (as shown in the example), but not when using nunjucks. |
a similar or the same thing happens when using WebC components. changing a component triggers a rebuild, but the files (and accordingly, the browser preview) aren't updated. |
ah, looks like a duplicate of 11ty/eleventy#2924 |
for me this (mostly) works in the current alpha installed directly from github, in my case using pnpm: |
This is likely fixed by the new handlebars compat plugin for Eleventy 3.0+ |
(this has also been a longstanding issue with the pugjs plugin, so seems systematic) |
Operating system
Windows 10
Eleventy
2.0.1
Describe the bug
If you run 11ty in "serve" mode and change a partial file, a rebuild is triggered but the changed partial is not used.
Note that several comments at the bottom of 11ty/eleventy#596 describe similar issues (both MacOS and Windows).
Reproduction steps
This dead-simple project demonstrates the issue. From its README:
npm install
npx eleventy --serve
localhost:8080
-- you should see "Hello Bug!"src/_includes/world.hbs
to contain "World!" instead of "Bug!" -- a rebuild is triggered and the page is reloaded, but it still says "Hello Bug!"npx eleventy --serve
and reload the page -- now you correctly see "Hello World!"Expected behavior
After changing "Bug!" to "World!" the web page should show "Hello World!" without needing to restart the server.
Reproduction URL
https://github.com/RickMohr/eleventyBug
Screenshots
No response
The text was updated successfully, but these errors were encountered: