Open monochromer opened 3 months ago
Experiencing same issue since upgrading to 3.0.0-beta.1
Only files that include *.content
or *.templateContent
fail when using --incremental
Removing --incremental
from npx @11ty/eleventy --serve
is the current workaround.
Successfully reproduced using provided test case, thank you!
Shipping with 3.0.0-beta.2 and 3.0.0-alpha.19
I got the same error on 3.0.0
Trying to generate pages from a collection in --incremental
mode.
I have this in a web.md
file
---
eleventyImport:
collections: ["allcontent"]
pagination:
data: collections.bookcontent
size: 1
alias: pageitem
layout: "web/web-all.njk"
permalink: "/{{pageitem.data.collection}}/{{pageitem.data.id}}/index.html"
---
if i update web-all.njk
, i get this error.
Tried to use templateContent on unrendered template
i have this line in the web-all.njk
:
{{ pageitem.templateContent | safe }}
if i remove this line from the njk files, things get updated correctly (although it seems that the updated content isn’t updated, i need to stop/restart eleventy to see the changes).
Confirm. This bug is reproduced in 3.0.0
.
Operating system
MacOS Sonoma 14.6
Eleventy
3.0.0-beta.1
Describe the bug
In incremental mode i am getting an error
TemplateContentUnrenderedTemplateError: Tried to use templateContent on unrendered template
, when i try to edit file, that hascontent
ortemplateContent
getter:Reproduction steps
npm run dev:incremental
feed.njk
Expected behavior
Behavior as in watch mode without incremental.
Reproduction URL
https://stackblitz.com/edit/stackblitz-starters-5wrmek?file=src%2Farticles%2Ffeed.njk
Screenshots
No response