eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

With --serve, changing a partial triggers a rebuild but doesn't use the updated partial

Open RickMohr opened this issue 2 years ago • 4 comments
trafficstars

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 https://github.com/11ty/eleventy/issues/596 describe similar issues (both MacOS and Windows).

Reproduction steps

This dead-simple project demonstrates the issue. From its README:

  1. npm install
  2. npx eleventy --serve
  3. Browse to localhost:8080 -- you should see "Hello Bug!"
  4. Change 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!"
  5. Restart 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

RickMohr avatar Oct 07 '23 20:10 RickMohr