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] Error: Could not find the node's symbol. #525
I just started using compodoc, and get the same error.
In my case it was caused by the routes i was using. I had to comment the routes in both my app.module and another module and that was enough to make it work. Hope that helps.
@attilacsanyi thanks for the screenshot but i didn't see any reference to a file where Compodoc breaks. Is it one with routes definitions ?
@entrodus Is it possible to have an example of your routes ?
@vogloblinksky unfortunately this was the whole output, nothing more. My route definitions not changed between the working 1.0.9 and 1.1.1.
All my routes are lazyly loaded an have two router outlets.
I have pinned the issue, but it's trick to explain so i'll do my best.
The issue might be external, coming from ts-simple-ast
For me it happens whenever I use a function call expression where the function is on an object, e.g. myObj.functionCall(). If the function is used directly (functionCall()) it works fine.
this gives the Unhandled Rejection at: Promise error. It goes away when you remove the Routes typing as suggested by @WebStew above but then Compodoc just doesn't generate the routes part of the documentation.
Maybe this issue or one of the issues this was just referenced in (all of which look like the same problem to me) should be included in the routing issues project.
I solved this problem by using the solution @bartios posted earlier in this thread. When defining a Routes array in a routing module, reference enum values by their .valueOf() method.
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 Apr 1, 2018
Can i have a screenshot of your terminal ?
On which file did it breaks ?
If possible can i have the code of this file ?
thanks
attilacsanyi commentedon Apr 1, 2018
Thanks for the quick reply @vogloblinsky see the output below. I hope this helps.

Let me know if you need more details. thanks your fix in advance.
ntsokos commentedon Apr 1, 2018
I just started using compodoc, and get the same error.
In my case it was caused by the routes i was using. I had to comment the routes in both my app.module and another module and that was enough to make it work. Hope that helps.
[-]reason: Error: Could not find the node's symbol.[/-][+][BUG] Error: Could not find the node's symbol.[/+]vogloblinsky commentedon Apr 2, 2018
@attilacsanyi thanks for the screenshot but i didn't see any reference to a file where Compodoc breaks. Is it one with routes definitions ?
@entrodus Is it possible to have an example of your routes ?
attilacsanyi commentedon Apr 2, 2018
@vogloblinksky unfortunately this was the whole output, nothing more. My route definitions not changed between the working 1.0.9 and 1.1.1.
All my routes are lazyly loaded an have two router outlets.
shlomiassaf commentedon Apr 3, 2018
I can confirm this happens to me as well.
I have pinned the issue, but it's trick to explain so i'll do my best.
The issue might be external, coming from
ts-simple-astFor me it happens whenever I use a function call expression where the function is on an object, e.g.
myObj.functionCall(). If the function is used directly (functionCall()) it works fine.Example:
In file
utils.tsI export the following:now in my
app.routes.ts:The above code will result in the error.
To fix it we just need to use
doWork()directly so we add:and then use it directly:
Now no errors.
I believe this is coming from
ts-simple-astbut i'm not sure.vogloblinsky commentedon Apr 3, 2018
@shlomiassaf Thanks for the feedback. I will look that asap.
31 remaining items
kauppfbi commentedon Jul 24, 2018
Any news on that topic, @vogloblinsky?
I also use an enumeration for my route paths and cannot generate the documentation.
I am using version 1.1.3 from my local dependencies
WebStew commentedon Aug 21, 2018
Not ideal but I got this working by removing the Routes typing, example :
export coreRoutes : Routes = [ ... ]Change to
export coreRoutes = [ ... ]attilacsanyi commentedon Aug 21, 2018
Thanks @WebStew , would be great if @vogloblinsky can solve it in a nice manner. ;-)
kyusupov33 commentedon Sep 10, 2018
same problem
1.1.5
Typescript version :"~2.7.2
Node.js version : v8.11.3
Operating system : Windows 7
I tried change
to
but it did not help=)
P.S. I'm using suggetion from #479 to include --disableRoutesGraph
bartios commentedon Sep 27, 2018
Same problem
Compodoc version: 1.1.5
Typescript version : 2.9.1
Node.js version : v8.12.0
Operating system : Windows 10
We are using an enum in our route data in the following way:
this gives the
Unhandled Rejection at: Promiseerror. It goes away when you remove the Routes typing as suggested by @WebStew above but then Compodoc just doesn't generate the routes part of the documentation.A fix for now is calling
valueOf()on the enum:The generation throws no errors and the routes are included in the documentation.
Some extra information.
enum is imported as:
Routes are declared as:
@vogloblinsky do you have any idea what is causing the error? Do you need more info/how can I help you pinpoint the issue?
bartios commentedon Sep 27, 2018
Maybe this issue or one of the issues this was just referenced in (all of which look like the same problem to me) should be included in the routing issues project.
olegmusin commentedon Jan 8, 2019
The problem seems to be in typing routes as Routes. Without type it works seamlessly.
kioviensis commentedon Jan 22, 2019
Having the same issue
Compodoc v1.1.7
Angular CLI 7.2.2
Clear up "Routes" types fixes the problem, but I think it's not okay to do like that
ryanerrington commentedon Feb 18, 2019
Also having the same issue with version 1.1.8.
This is happening when i reference any route property from environment files e.g.
data: { title: environment.feature.name }seaBubble commentedon Mar 14, 2019
I am having this issue too
brentmiller commentedon May 2, 2019
I solved this problem by using the solution @bartios posted earlier in this thread. When defining a Routes array in a routing module, reference enum values by their
.valueOf()method.So instead of:
data: { fooProperty: FooEnum.FooPermission }Use:
data: { fooProperty: FooEnum.FooPermission.valueof() }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.
fix(deps): replace callExpressions in routes definitions with text
fix(deps): routes data with function call