You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Routes Parsing Error with path defined in const. #51
After AST parsing, Compodoc tries to recreate the code in memory for handling routes, and use JSON.parse for recreating the array.
Seems your APP_CONFIG which is an external variable breaks this.
I have to better handling the routes with all the current situation and code like yours.
Keep in touch.
Using compodoc 1.0.5 version. Still getting the following error Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanning
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.
Activity
vogloblinsky commentedon Jan 7, 2017
After AST parsing, Compodoc tries to recreate the code in memory for handling routes, and use JSON.parse for recreating the array.
Seems your APP_CONFIG which is an external variable breaks this.
I have to better handling the routes with all the current situation and code like yours.
Keep in touch.
vogloblinsky commentedon Jul 12, 2017
@chunghha just starting fixing this bug and example repository not available. Is https://github.com/chunghha/clarity the new one ?
chunghha commentedon Jul 12, 2017
chunghha/example-app@fab5711
I didn't realize that the clarity-seed is needed here when it's removed. Please use this example-app repo (compodoc branch) for your fixing.
One thing I noticed is that
This, without Routes type, doesn't get the parsing error but skips RouterModule to the generated compodoc document.
export const appRoutes = [This, with Routes type, gets the parsing error.
export const appRoutes: Routes = [vogloblinsky commentedon Jul 12, 2017
Thanks @chunghha, it helps me adding another parsing context for Routes definition.
Yes "Routes" type is mandatory for routes parsing.
AilisObrian commentedon Jul 18, 2017
@chunghha OMG! I LOVE YOU!!!!! It resolved my issue!
vogloblinsky commentedon Jul 18, 2017
@AilisObrian can you explain a little ?
2 remaining items
vogloblinsky commentedon Dec 3, 2017
Fixed with 1.0.5
mail2bhramar commentedon Dec 20, 2017
Using compodoc 1.0.5 version. Still getting the following error
Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanningvogloblinsky commentedon Dec 20, 2017
@mail2bhramar
Did you have an example of routing for your project ?
lock commentedon Sep 30, 2019
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.