π Bug: Eleventy template builds crash with 'unexpected token at ": string, msg..."'
marjys opened this issue Β· comments
Marjorie Saito commented
Bug Report Checklist
- I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- I have searched for related issues and issues with the
faq
label, but none matched my issue. - I have 'smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, my usage of Mocha, or Mocha itself.
- I want to provide a PR to resolve this
Expected
Running npm start docs
should build the docs without errors.
Actual
The following error from Eleventy is popping up:
[11ty] Problem writing Eleventy templates: (more in DEBUG output)
[11ty] 1. Having trouble rendering liquid template ./docs/api/reporters_base.js.html (via TemplateContentRenderError)
[11ty] 2. unexpected token at ": string, msg...", file:./docs/api/reporters_base.js.html, line:273, col:12 (via ParseError)
[11ty] 3. unexpected token at ": string, msg..." (via AssertionError)
[11ty]
[11ty] Original error stack trace: AssertionError: unexpected token at ": string, msg..."
[11ty] at new AssertionError (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:1201:28)
[11ty] at assert (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:1236:15)
[11ty] at Tokenizer.readFilter (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:2245:9)
[11ty] at Tokenizer.readFilters (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:2234:31)
[11ty] at new Value (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:2788:34)
[11ty] at new Output (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:4472:23)
[11ty] at Parser.parseToken (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:4541:24)
[11ty] at Parser.parseTokens (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:4531:33)
[11ty] at Parser.parse (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:4525:21)
[11ty] at Liquid.parse (/Users/marjorie/Documents/github/courses/mocha/node_modules/liquidjs/dist/liquid.node.cjs.js:4663:28)
[11ty] Benchmark 3054ms 73% 1Γ (Data) `./docs/_data/supporters.js`
[11ty] Benchmark 380ms 9% 1Γ (Data) `./docs/_data/toc.js`
[11ty] Wrote 0 files in 4.06 seconds (v1.0.2)
The script called "doc" which runs "nps docs.clean && nps docs.api && eleventy && nps docs.linkcheck" failed with exit code 1 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
Minimal, Reproducible Example
This error happens when building the docs by running npm start docs
Versions
mocha version: 10.3.0
node version: v21.7.0
Additional Info
No response
Josh Goldberg β¨ commented
π looks like @LcsK might be working on a fix already?