Open ryangittings opened 1 year ago
is this still relevant or was it fixed with https://github.com/11ty/eleventy/issues/2853
I believe this is still an issue. But I've worked around it. I think it happens when JS is used in the front matter for a permalink.
I'm running into this with Eleventy 2.0.1 with no serverless functionality in play: using pagination to iterate over an array in the global data, then a 'permalink' function in eleventyComputed.js
, everything works fine unless I return FALSE to suppress output for one of the items.
Happy to whip up a bite-sized script to duplicate it if it helps, but it does seem to mirror just what this issue describes. Curious what your workaround was, @ryangittings?
Operating system
macOS Ventura 13.0
Eleventy
2.0.0
Describe the bug
Original error stack trace: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (false)
at Template._write (/node_modules/@11ty/eleventy/src/Template.js:751:34)
Reproduction steps
Use JS frontmatter as follows
Run build
Error
Expected behavior
To build pages that have a slug, and to ignore ones with a
false
permalinkReproduction URL
No response
Screenshots
No response