-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
dep graph not generated due to errors #1551
Comments
@cladera could you provide a repro? |
I tried (https://github.com/cladera/nx-dep-graph-issue) but I couldn't reproduce the error. I guess there is something wrong specific to my libraries and apps or with my vendor dependencies. But I do see though is the same error message in the log:
|
@cladera we are using graphviz to generate the graph. I might be related to mdaines/viz-js#96. I'm really sorry but it's hard for us to investigate without having a repro. So if you cannot create a repro, I'll have to close the issue. |
@vsavkin Don't worry, I totally understand. I'll try to debug my self in our project and get back to this issue if I learn something new. |
https://github.com/ynoval/mssone.git is a repo with he same error:
(node:31475) V8: /home/yoel/MSS-ONE/borrar/mssone/node_modules/viz.js/viz.js:33 Invalid asm.js: Function definition doesn't match use Angular CLI: 8.0.0 Thanks!! Nx is a great tool |
Same problem here (((( C:\Projects\Angular\work>nx dep-graph --verbose |
@mtuzinskiy No, I didn't. Actually it became a real pain. Now I don't know if the problem is with the graph generation or nx is not actually able to map my dependencies. I ran into serious problems lately because of this problem... |
@cladera Well, I have tried it out with freshly created Nx project, and it's the same. So it's NOT related to your dependencies. Could you please try it with the fresh one too, to verify? Shouldn't take much of your time :) |
@mtuzinskiy I did what you suggested. I created a brand new project with one angular app and one angular library. When I run
|
@cladera Could you please re-check if you have the same version of Nx in your new and old project? |
I did more digging. It looks like the issue occurs only on Node 12. It looks like the following libraries are deprecated:
I think we should replace it with: Would you like to do it folks? It's just one file in the nx repo that has to be updated. I can help you out. |
@mtuzinskiy yes, I had the same version in my project and in the brand new project. |
I figure out what was going on with my project and I think it is solved now. There were two things I configured wrong:
|
We no longer use graphviz for our dep-graph so this issue should not occur as of Please file a new issue if you have issues with the new implementation for |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Expected Behavior
It should generate the dependencies graph of my project.
Current Behavior
When I run
npm run dep-graph
It generates an image with all my libs and apps in a row with no connections between them.Failure Information (for bugs)
[project root]node_modules/viz.js/viz.js:33 Invalid asm.js: Function definition doesn't match use
Steps to Reproduce
npm run dep-graph
Context
Angular CLI version output
Nx version
Other
I began to notice this error after importing an existing project to our monorepo. After the import several libraries and apps where created although it did not require adding any extra dependency, they were libs and apps pretty similar to the ones that were already in the monorepo.
The text was updated successfully, but these errors were encountered: