You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With --serve, changes made to Handlebars partials (located inside the includes directory) that are used in templates (layouts) will seem to trigger an appropriate build, and the page will refresh, but the changes to the partial are ultimately not reflected (i.e. the old/cached version of the partial is still used for the build).
Changes to templates, or changes to partials used directly on pages, will build as expected. Turning off compileOptions.cache does not seem to have any effect.
Reproduction steps
Have 11ty project using Handlebars
Use a partial {{ some-partial }} (includes) inside a template some-template.hbs (layouts)
Use the template some-template on a page some-page.hbs (input) via frontmatter
Run npx @11ty/eleventy --serve and view the page /some-page in a browser
Make a change to the some-partial partial
Expected behavior
The page should be re-built with the new contents of the partial.
Reproduction URL
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered:
On my computer, setting they 11ty version to "2.0.0-canary.20" resolves this issue.
I believe this regression was introduced with some of the December work on the template engine. Those changes were released with 2.0.0-canary.21. But I haven't looked at the code too closely, that's just a guess.
Operating system
macOS Ventura 13.0
Eleventy
2.0.0
Describe the bug
With
--serve
, changes made to Handlebars partials (located inside theincludes
directory) that are used in templates (layouts
) will seem to trigger an appropriate build, and the page will refresh, but the changes to the partial are ultimately not reflected (i.e. the old/cached version of the partial is still used for the build).Changes to templates, or changes to partials used directly on pages, will build as expected. Turning off
compileOptions.cache
does not seem to have any effect.Reproduction steps
{{ some-partial }}
(includes
) inside a templatesome-template.hbs
(layouts
)some-template
on a pagesome-page.hbs
(input
) via frontmatternpx @11ty/eleventy --serve
and view the page/some-page
in a browsersome-partial
partialExpected behavior
The page should be re-built with the new contents of the partial.
Reproduction URL
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: