Skip to content

SyntaxError: JSON5: invalid character '.' at 1:69 #1573

Closed

Description

@shaishavj

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

  1. tcorral commented on Aug 23, 2025

    @tcorral
    Collaborator

    @shaishavj Could you provide a simple example so we can reproduce it locally?

  2. tcorral commented on Aug 28, 2025

    @tcorral
    Collaborator

    @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.

  3. shaishavj commented on Sep 4, 2025

    @shaishavj
    Author

    Thanks for pointing me in the right direction. I'll check all the files, thanks!

  4. shaishavj commented on Sep 8, 2025

    @shaishavj
    Author

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions