[BUG] Routes Parsing Error with path defined in const.
See original GitHub issueOverview of the issue
I have app level config file for const as seen in this commit https://github.com/chunghha/clarity-seed/commit/006663f8e5bef23c71844036ad7255ff83796ab2
if I use the APP_CONFIG in the routes, compodoc throws this error while parsing. “Routes parsing error, maybe a trailing comma ?”
Operating System, Node.js, npm, compodoc version(s)
Linux(ubuntu16.04) node: 7.3.0 npm: 3.10.10
Angular configuration, a package.json
file in the root folder
please see the package.json in the repository.
Compodoc installed globally or locally ?
locally.
Motivation for or Use Case
The Routes is parsed without error if I don’t use APP_CONFIG ( as good one with master branch, https://chunghha.github.io/clarity-seed/routes.html ) and nothing wrong to use the APP_CONFIG for the app to run. Thus, compodoc should parse the Routes without this error.
Reproduce the error
please check out the compodoc branch to reproduce this error.
Related issues
Suggest a Fix
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
[BUG] Route parsing error · Issue #216 · compodoc ... - GitHub
[08:45:30] Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanning.
Read more >Line 0: Parsing error: Cannot read property 'map' of undefined
This fixes the bug because [] is parsed as a tuple type, while string[] is pared as an array type. In TS 4.0...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, ... error: wx/image.h: No such file or directory" status:RESOLVED ...
Read more >auto_route | Flutter Package - Pub.dev
Declarative Navigation; Working with Paths; Route guards; Wrapping routes ... if the declared route has children AutoRoute will add a children parameter to ......
Read more >Configuring links | React Navigation
For example, you might want to parse the path /feed/latest to something like: ... Here, we have defined a route named NotFound and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/chunghha/example-app/commit/fab5711c63bbb1c832a07b8abc56242e06235698
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 = [
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.