question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Routes Parsing Error with path defined in const.

See original GitHub issue
Overview 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:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
chunghhacommented, Jul 12, 2017

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 = [

0reactions
lock[bot]commented, 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found