The code path to produce human-readable error messages if addFilter()
etc are called on a non-function is throwing
#3385
Labels
Milestone
(Using 3.0.0.alpha.17)
As part of almost every 11ty config, I have this little snippet:
Where
filters
is an import containing multiple util functions.In the project I’m currently working on, at some point I started getting this error message:
I was puzzled. There was no
name
anywhere! Clicking through to the call stack revealed this:Which made me realize what was happening: I had added some
export const
to my filters file, and trying to add these as filters was understandably throwing.It looks like there is already a code path to produce a better error message, but that is throwing.
Fixing it would be a reasonable first step. I’d argue that this is not a reason for complete and total failure either — but I’m going to open another issue for that.
The text was updated successfully, but these errors were encountered: