-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Unknown Liquid filters and variables block build even if strict is off #2229
Comments
Seems to work for me. https://github.com/pdehaan/11ty-2229
Here's what my sample /src/_data/site.js file looks like (where module.exports = {
data: {
stuff: [
{ title: "OnE", url: "/one", current: true },
{ title: "TwO", url: "/two", current: false },
{ title: "ThReE", url: "/three", current: false },
{ title: "FoUr", url: "/four", current: true },
{ title: "FiVe", url: "/five", current: false },
],
},
}; |
Still, as pointed out in #2228, also |
Sorry, I might be confused here... Not sure where If I'm reading the error correctly, Eleventy is saying that LiquidJS is finding the LiquidJS Aside: Without having tested it, I'd expect |
Created https://github.com/pdehaan/11ty-2228 which seems to successfully ignore the undefined Jekyll |
As pointed out in #2234, I am getting so confused because it appears that the problem is not only related |
I think these errors are red herrings. I vaguely recall that when I was migrating my old Jekyll site to 11ty, I got many similar errors about filters not existing. The filters existed, but I think something was breaking in the build pipeline and throwing off the Liquid parser or 11ty. |
As noted in #2234, the problems were not the filters themselves, but rather the nature of the object they were applied to. |
Describe the bug
Even though in my
.eleventy.js
I have set the following:I continue to get errors of filters not being recognized. As side note, I do not even understand why filters that should be supported by LiquidJS are not recognized.
To Reproduce
Steps to reproduce the behavior:
stuff.html
, write:stuff-it.html
This happens with
where_exp
, too, as pointed out in #2228Expected behavior
Liquid filter should be ignored if not recognized. Nevertheless, it should be recognized, too!
Screenshots: n/a
Environment:
Additional context
It would be lovely to get more debugging context for non-developers like I am. I cannot figure out the cause of this not working.
The text was updated successfully, but these errors were encountered: