eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

root index.html does not update after change

Open rbhalla opened this issue 1 year ago • 2 comments

Operating system

macOS Sonoma 14.5

Eleventy

2.0.1

Describe the bug

I am new to the library and have a clean install, my folder structure is:

  • _includes
    • layout.html
  • posts
    • post1.md
  • index.html

Both post1.md and index.html reference layout.html in their front matter.

I am compiling them using the command npx @11ty/eleventy --serve which I believe also watches.

When I make a change to layout.html, I see both files being written in the terminal, however, only one compiled reflects the change, /posts/post1/index.html. To make sure I also see it at /index.html, I have to re run npx @11ty/eleventy --serve to see the change (which sort of defeats the purpose of the watcher for me).

Reproduction steps

  1. copy folder structure as above
  2. ensure front matter for both files is pointing to single layout file
  3. run npx @11ty/eleventy --serve
  4. see the problem

Expected behavior

I expect to always see the latest change when I save.

Reproduction URL

No response

Screenshots

No response

rbhalla avatar Aug 15 '24 22:08 rbhalla

I’m having trouble reproducing this with the steps provided—can you provide a minimum test case that exhibits the issue?

zachleat avatar Aug 23 '24 21:08 zachleat

Another option is to perhaps try the 3.0.0-beta.1 version (soon to release as stable)

npm install @11ty/eleventy@beta --save-exact

zachleat avatar Aug 23 '24 21:08 zachleat

This is an automated message to let you know that this issue requires additional input from the original poster and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.

Do not let the issue’s closing deter you. After you’ve supplied the required information, the issue will be reopened. Thanks!

zachleat avatar Aug 30 '24 15:08 zachleat