N
Nuxt8mo ago
FoxCode

Error but no fail (failOnError: true)

failOnError is set to true, and it always worked fine, but today when generating the page something went wrong, an error appeared and at the same time it did not throw an error but it is visible in the logs, why? The error was an incorrect syntax in the .md file parsed by nuxt-content. Logs:
[2024-07-15T17:37:55.994Z] [error] [unhandledRejection] bad indentation of a mapping entry (11:23)
[2024-07-15T17:37:55.994Z]
[2024-07-15T17:37:55.994Z] 10 | date: '2024-07-15'
[2024-07-15T17:37:55.994Z] 11 | link: ""https://github.com/xyz/l ...
[2024-07-15T17:37:55.994Z] ----------------------------^
[2024-07-15T17:37:55.994Z] at generateError (node_modules/js-yaml/dist/js-yaml.mjs:1273:10)
[2024-07-15T17:37:55.994Z] at throwError (node_modules/js-yaml/dist/js-yaml.mjs:1277:9)
[2024-07-15T17:37:55.994Z] at readBlockMapping (node_modules/js-yaml/dist/js-yaml.mjs:2272:7)
[2024-07-15T17:37:55.994Z] at composeNode (node_modules/js-yaml/dist/js-yaml.mjs:2531:12)
[2024-07-15T17:37:55.994Z] at readDocument (node_modules/js-yaml/dist/js-yaml.mjs:2715:3)
[2024-07-15T17:37:55.994Z] at loadDocuments (node_modules/js-yaml/dist/js-yaml.mjs:2778:5)
[2024-07-15T17:37:55.994Z] at Object.load$1 [as load] (node_modules/js-yaml/dist/js-yaml.mjs:2804:19)
[2024-07-15T17:37:55.994Z] at parseFrontMatter (node_modules/remark-mdc/dist/index.mjs:33:21)
[2024-07-15T17:37:55.994Z] at .nuxt/prerender/chunks/runtime.mjs:2132:50
[2024-07-15T17:37:55.994Z] at parseMarkdown (.nuxt/prerender/chunks/runtime.mjs:2155:10)
[2024-07-15T17:37:55.994Z] [error] [unhandledRejection] bad indentation of a mapping entry (11:23)
[2024-07-15T17:37:55.994Z]
[2024-07-15T17:37:55.994Z] 10 | date: '2024-07-15'
[2024-07-15T17:37:55.994Z] 11 | link: ""https://github.com/xyz/l ...
[2024-07-15T17:37:55.994Z] ----------------------------^
[2024-07-15T17:37:55.994Z] at generateError (node_modules/js-yaml/dist/js-yaml.mjs:1273:10)
[2024-07-15T17:37:55.994Z] at throwError (node_modules/js-yaml/dist/js-yaml.mjs:1277:9)
[2024-07-15T17:37:55.994Z] at readBlockMapping (node_modules/js-yaml/dist/js-yaml.mjs:2272:7)
[2024-07-15T17:37:55.994Z] at composeNode (node_modules/js-yaml/dist/js-yaml.mjs:2531:12)
[2024-07-15T17:37:55.994Z] at readDocument (node_modules/js-yaml/dist/js-yaml.mjs:2715:3)
[2024-07-15T17:37:55.994Z] at loadDocuments (node_modules/js-yaml/dist/js-yaml.mjs:2778:5)
[2024-07-15T17:37:55.994Z] at Object.load$1 [as load] (node_modules/js-yaml/dist/js-yaml.mjs:2804:19)
[2024-07-15T17:37:55.994Z] at parseFrontMatter (node_modules/remark-mdc/dist/index.mjs:33:21)
[2024-07-15T17:37:55.994Z] at .nuxt/prerender/chunks/runtime.mjs:2132:50
[2024-07-15T17:37:55.994Z] at parseMarkdown (.nuxt/prerender/chunks/runtime.mjs:2155:10)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?