Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unhandled Rejection at: Promise { #1164

Closed
hmendezm opened this issue Dec 14, 2021 · 3 comments
Closed

[BUG] Unhandled Rejection at: Promise { #1164

hmendezm opened this issue Dec 14, 2021 · 3 comments

Comments

@hmendezm
Copy link

Hi Guys, compodoc was working for a long time but Today compodoc decided to stop working. The only thing I change was to use lazy loading in Angular but I do not see how this can affect it.

compodoc: v1.1.14

Unhandled Rejection at: Promise {
SyntaxError: JSON5: invalid character '(' at 1:40
at syntaxError (C:\Projects....\node_modules\json5\lib\parse.js:1083:17)
at invalidChar (C:\Projects....\node_modules\json5\lib\parse.js:1028:12)
at Object.value (C:\Projects....\node_modules\json5\lib\parse.js:287:15)
at lex (C:\Projects.....\node_modules\json5\lib\parse.js:78:42)
at Object.parse (C:\Projects....\node_modules\json5\lib\parse.js:25:17)
at loopInsideModule (C:\Projects.....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:5976:63)
at loopRoutesParser (C:\Projects.....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:6009:29)
at loopRoutesParser (C:\Projects...\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:6014:21)
at RouterParserUtil.constructRoutesTree (C:\Projects...\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:6018:9)
at AngularDependencies.getDependencies (C:\Projects....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:9026:50) {
lineNumber: 1,
columnNumber: 40
}
} reason: SyntaxError: JSON5: invalid character '(' at 1:40
at syntaxError (C:\Projects....\node_modules\json5\lib\parse.js:1083:17)
at invalidChar (C:\Projects...\node_modules\json5\lib\parse.js:1028:12)
at Object.value (C:\Projects....\node_modules\json5\lib\parse.js:287:15)
at lex (C:\Projects...\node_modules\json5\lib\parse.js:78:42)
at Object.parse (C:\Projects....\node_modules\json5\lib\parse.js:25:17)
at loopInsideModule (C:\Projects.....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:5976:63)
at loopRoutesParser (C:\Projects.....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:6009:29)
at loopRoutesParser (C:\Projects.....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:6014:21)
at RouterParserUtil.constructRoutesTree (C:\Projects......\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:6018:9)
at AngularDependencies.getDependencies (C:\Projects....\node_modules@compodoc\compodoc\dist\index-cli-8ef9c2ed.js:9026:50) {
lineNumber: 1,
columnNumber: 40
}
[08:10:37] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/isoc/issues/new)

@vogloblinsky vogloblinsky changed the title Unhandled Rejection at: Promise { [BUG] Unhandled Rejection at: Promise { Dec 14, 2021
@vogloblinsky
Copy link
Contributor

Can i have the sourcecode of your routing ?

@hmendezm
Copy link
Author

Hi vogloblinsky,

I found the issue. The issue is when you use `` instead of '' inside import(....)

Best
hmendez

@vogloblinsky
Copy link
Contributor

Ok thanks, reproduced

@vogloblinsky vogloblinsky reopened this Dec 15, 2021
@vogloblinsky vogloblinsky added this to the 1.1.17 milestone Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants