Skip to content

Run into an error while upgrading 11ty to 2.0.0 #2856

Answered by pdehaan
cat-a-flame asked this question in Q&A
Discussion options

You must be logged in to vote

Semi-unrelated, but running npm i js-beautify -D mostly worked for me. Once you solve that, you'll start getting errors like this:

undefined filter: safe (via AssertionError)
...
Original error stack trace: AssertionError: undefined filter: safe

Seems to be coming from a few of your .md files. The safe filter is a Nunjucks filter and isn't a default LiquidJS filter. This happens because (a) LiquidJS is the default template engine for Markdown files, and (b) LiquidJS might be stricter w/ missing filters in newer versions of 11ty/LiquidJS, see LiquidOptions#strictFilters. Previously missing/undefined filters might have been silently ignored and now will loudly fail (which is good).

After re…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@cat-a-flame
Comment options

@pdehaan
Comment options

@pdehaan
Comment options

@cat-a-flame
Comment options

Comment options

You must be logged in to vote
3 replies
@cat-a-flame
Comment options

@pdehaan
Comment options

@cat-a-flame
Comment options

Answer selected by cat-a-flame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants