Closed groenroos closed 2 days ago
tags
should still be normalized to Array from String in 3.0 too.
I did do a small cleanup of this section of the code for 3.0.0-alpha.14
released today—can you test again before we deep dive in?
https://github.com/11ty/eleventy/commit/fa0b636a17f50a43d1fa5945c003f1bde4e9f4c0
I can have a look at a more complex test case too, if that helps.
Upgrading to 3.0.0-alpha.14
seems to have replaced this error with a different one, so I can only assume that this was addressed in alpha.14
. Thank you!
Operating system
macOS Sonoma 14.4.1
Eleventy
3.0.0-alpha.13
Describe the bug
When trying to build a project which works fine in Eleventy 2.0.1, using Eleventy 3.0.0-alpha.13, the build fails with the following error:
As there's no pointer to a particular project template or file, it's hard to work out what content is causing this to happen, or how to create a minimal reproduction. The DEBUG mode doesn't appear to output anything that jumps out at me, but happy to provide additional details.
The error seems to relate to the tags data not being an array, as expected by the
TemplateData.getIncludedTagNames
method. The site content does often definetags
as a single string (instead of an array), in templates of both Liquid and Markdown, as well as via data files. This has previously been abstracted away by Eleventy 2.x.Reproduction steps
tags
being defined as a string and not an arrayExpected behavior
The project should build without errors, without having to change all previous content.
Reproduction URL
No response
Screenshots
No response