Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.1-alpha.1 Tried to use templateContent too early issue with template concurrency #3596

Closed
zachleat opened this issue Dec 20, 2024 · 1 comment
Labels
bug release: canary A release on the canary channel

Comments

@zachleat
Copy link
Member

Probably via #3277 and #3585.

11ty-website npm run build-production

[11ty] Original error stack trace: TemplateContentPrematureUseError: Tried to use templateContent too early on ./src/docs/quicktips/tag-pages.md
[11ty]     at Object.get [as templateContent] (file:///vercel/path0/node_modules/@11ty/eleventy/src/Template.js:626:14)
[11ty]     at Object.get [as content] (file:///vercel/path0/node_modules/@11ty/eleventy/src/Template.js:646:18)
[11ty]     at Object.memberLookup (/vercel/path0/node_modules/nunjucks/src/runtime.js:201:17)
[11ty]     at eval (eval at _compile (/vercel/path0/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:68:57)
[11ty]     at iterCallback (/vercel/path0/node_modules/nunjucks/src/runtime.js:236:11)
[11ty]     at next (/vercel/path0/node_modules/nunjucks/src/lib.js:258:7)
[11ty]     at eval (eval at _compile (/vercel/path0/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:72:1)
[11ty]     at Context.<anonymous> (file:///vercel/path0/node_modules/@11ty/eleventy/src/UserConfig.js:457:5)
[11ty]     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Viable workaround is to use eleventyConfig.setConcurrency(1);

@zachleat zachleat added bug release: canary A release on the canary channel labels Dec 20, 2024
@zachleat zachleat added this to the Eleventy 3.0.1 milestone Dec 20, 2024
zachleat added a commit to 11ty/11ty-website that referenced this issue Dec 20, 2024
@zachleat
Copy link
Member Author

zachleat commented Dec 30, 2024

Concurrency default changed to 1 to stay on the safe side for now. Shipping with v3.0.1-alpha.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug release: canary A release on the canary channel
Projects
None yet
Development

No branches or pull requests

1 participant