nx: dep graph not generated due to errors
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
Angular CLI: 8.0.3
Node: 12.3.1
OS: darwin x64
Angular: 8.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.800.6
@angular-devkit/build-ng-packagr 0.800.6
@angular-devkit/build-optimizer 0.800.6
@angular-devkit/build-webpack 0.800.6
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cdk 8.0.1
@angular/flex-layout 8.0.0-beta.26
@angular/material 8.0.1
@angular/material-moment-adapter 8.0.1
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.0.6
@schematics/angular 8.0.1
@schematics/update 0.800.3
ng-packagr 5.3.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
Nx version
8.1.2
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.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (3 by maintainers)
https://github.com/ynoval/mssone.git is a repo with he same error: $ npm run dep-graph …
(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 Node: 12.6.0 OS: linux x64 Angular: 8.1.2
Thanks!! Nx is a great tool
@mtuzinskiy yes, I had the same version in my project and in the brand new 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: https://github.com/dagrejs/dagre/wiki
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.