Skip to content

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

@RickMohr

Description

@RickMohr

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:

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions