Repository navigation
Description
Full Stack:
Unhandled Rejection at: Promise { <rejected> SyntaxError: JSON5: invalid character '.' at 1:69 at syntaxError (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:1110:17) at invalidChar (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:1055:12) at Object.afterPropertyValue (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:676:15) at Object.default (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:168:37) at lex (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:100:42) at Object.parse (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:25:17) at loopInsideModule (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5148:63) at loopRoutesParser (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5181:29) at loopRoutesParser (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5192:21) at RouterParserUtil.constructRoutesTree (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5196:9) { lineNumber: 1, columnNumber: 69 } } reason: SyntaxError: JSON5: invalid character '.' at 1:69 at syntaxError (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:1110:17) at invalidChar (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:1055:12) at Object.afterPropertyValue (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:676:15) at Object.default (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:168:37) at lex (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:100:42) at Object.parse (C:\Development\Repos\Phoenix\phoenix\node_modules\json5\lib\parse.js:25:17) at loopInsideModule (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5148:63) at loopRoutesParser (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5181:29) at loopRoutesParser (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5192:21) at RouterParserUtil.constructRoutesTree (C:\Development\Repos\Phoenix\phoenix\node_modules\@compodoc\compodoc\dist\index-cli-D7g1_4MM.js:5196:9) { lineNumber: 1, columnNumber: 69 } [10:36:39] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/issues/new)
Activity
tcorral commentedon Aug 23, 2025
@shaishavj Could you provide a simple example so we can reproduce it locally?
tcorral commentedon Aug 28, 2025
@shaishavj is it possible that you have an space in your routes, probably
templateUrl?For example
templateUrl: "./ path-to-template.html",You need to check in all your routes and paths.
fix: enhance JSON5 parsing error handling in RouterParserUtil
shaishavj commentedon Sep 4, 2025
Thanks for pointing me in the right direction. I'll check all the files, thanks!
shaishavj commentedon Sep 8, 2025
I opted to use the ‘disableRoutesGraph’ flag since I didn’t require the generation of the routes graph, which consequently re-enabled the documentation generation. Thanks for your assistance!