Comments (2)
I also get this error, a large Angular 15 application.
Angular: 15.2.10
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1502.10
@angular-devkit/build-angular 15.2.10
@angular-devkit/core 15.2.5
@angular-devkit/schematics 15.2.10
@angular/cdk 15.2.9
@schematics/angular 15.2.10
ng-packagr 15.2.2
rxjs 7.8.1
typescript 4.9.5
It seems to fail on the tail end of the work, generating the dependencies.dot
. I'm running the command with npx -p @compodoc/ngd-cli ngd
and it fails there.
from ngd.
I went back a few versions, and I tried this with ngd version 1: npx -p angular2-dependencies-graph ngd
.
This is the result:
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0
[11:38:25] abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at Error
at jsStackTrace (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:5:20800)
at stackTrace (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:5:20983)
at abort (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:28:5424)
at abortOnCannotGrowMemory (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:5:21343)
at enlargeMemory (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:5:21788)
at Function.dynamicAlloc [as alloc] (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:5:6269)
at _sbrk (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:5:602676)
at N4 (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:21:7406)
at cK (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:13:185312)
at bK (/home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:13:185061)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
[11:38:25] done
(node:44859) V8: /home/zlatko/.npm/_npx/eb92f0ded616406a/node_modules/viz.js/viz.js:15 Invalid asm.js: Function use doesn't match definition
(Use `node --trace-warnings ...` to show where the warning was created)
Edit: after a quick digging into the details, it seems that vis.js has problems with "very large families" or something along the lines.
ngd -t json
works fine, the other formats all fail with the same error.
from ngd.
Related Issues (20)
- (bug): TypeError: Viz is not a function
- (feat) forRoot HOT 1
- add minimum distance between lines HOT 2
- Cannot enlarge memory arrays. HOT 13
- CLI Silent Option Doesn't Work HOT 1
- fix(): remove dependency on gulp-util from ngd-core pacakge HOT 1
- feat: move the build system to Bazel
- NGD unable to differentiate same component name in different moudles
- dot npm package vulnerability (npm audit failing) HOT 7
- parameter for layouting HOT 2
- parametr for filtering what element to render
- highlight the element or relationship on click
- AngularJS Dependency graph
- NGD does not recognise -l or --files option HOT 1
- Since 2.1, `@compodoc/ngd-transformer` now requires Node >= 12.17.0 HOT 2
- Plugin does not support tsconfig.json file with multi-line comments HOT 1
- Arbitrary Code Injection Vulnerability for dependency
- Compodoc installation : Pb with ngd-tranformer which download "dot" 2.0.0 beta version
- Question: Is it possible to just show the dependency tree of a given component? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngd.