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.

Production Build fails for Angular 5.0.0

See original GitHub issue

I’m submitting a … (check one with “x”)

[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior

if i use ngx-graph my build gets fails or else its works fine.

“devDependencies”: { “@angular/cli”: “1.5.0”, “@types/chartjs”: “0.0.31”, “@types/datatables.net”: “^1.10.15”, “@types/jasmine”: “~2.5.53”, “@types/jasminewd2”: “^2.0.3”, “@types/jquery”: “^3.3.29”, “@types/node”: “^6.0.45”, “jasmine”: “~2.4.1”, “jasmine-core”: “~2.4.1”, “karma”: “^1.3.0”, “karma-chrome-launcher”: “^2.0.0”, “karma-cli”: “^1.0.1”, “karma-jasmine”: “^1.0.2”, “karma-jasmine-html-reporter”: “^0.2.2”, “karma-phantomjs-launcher”: “^1.0.2”, “lodash”: “^4.17.11”, “phantomjs-prebuilt”: “^2.1.7”, “popper.js”: “^1.12.9”, “protractor”: “^5.4.1”, “ts-node”: “^3.3.0”, “tslint”: “^3.15.1”, “typescript”: “2.4.2” }

Expected behavior

Reproduction of the problem 92% chunk asset optimization <— Last few GCs —>

[15660:000001AA45530090] 207204 ms: Mark-sweep 1338.7 (1450.5) -> 1329.4 (1454.0) MB, 987.5 / 0.0 ms (average mu = 0.171, current mu = 0.112) allocation failure scavenge might not succeed [15660:000001AA45530090] 208309 ms: Mark-sweep 1342.0 (1454.0) -> 1332.7 (1457.5) MB, 988.6 / 0.0 ms (average mu = 0.140, current mu = 0.106) allocation failure scavenge might not succeed

<— JS stacktrace —>

==== JS stack trace =========================================

0: ExitFrame [pc: 0000038EE0ADC5C1]
1: StubFrame [pc: 0000038EE0ADDB86]

Security context: 0x01ea01b9e6e1 <JSObject> 2: read_word(aka read_word) [0000018B1FE77D81] [0x02f95f3826f1 <undefined>:~2276] [pc=0000038EE4532D92](this=0x02f95f3826f1 <undefined>) 3: next_token [0000018B1FE77DC1] [0x02f95f3826f1 <undefined>:~2296] [pc=0000038EE4566BCA](this=0x018b1fe77e01 <Object map = 0000006EC88E8749>,force_regexp=0x02f95f3826f1 <un…

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 00007FF7FD7C121A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4810 2: 00007FF7FD79A5B6 node::MakeCallback+4518 3: 00007FF7FD79AFA0 node_module_register+2160 4: 00007FF7FDA2B3EE v8::internal::FatalProcessOutOfMemory+846 5: 00007FF7FDA2B31F v8::internal::FatalProcessOutOfMemory+639 6: 00007FF7FDF69304 v8::internal::Heap::MaxHeapGrowingFactor+11476 7: 00007FF7FDF5FA67 v8::internal::ScavengeJob::operator=+25543 8: 00007FF7FDF5DFDC v8::internal::ScavengeJob::operator=+18748 9: 00007FF7FDF66F57 v8::internal::Heap::MaxHeapGrowingFactor+2343 10: 00007FF7FDF66FD6 v8::internal::Heap::MaxHeapGrowingFactor+2470 11: 00007FF7FDB09DD7 v8::internal::Factory::NewFillerObject+55 12: 00007FF7FDBA1ABA v8::internal::WasmJs::Install+29530 13: 0000038EE0ADC5C1

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

OS: 10, IDE: Visual Studio Code, Angular CLI: 7.3.1 Node: 10.15.0 OS: win32 x64 Angular: …

Package Version

@angular-devkit/architect 0.13.1 @angular-devkit/core 7.3.1 @angular-devkit/schematics 7.3.1 @schematics/angular 7.3.1 @schematics/update 0.13.1 rxjs 6.3.3 typescript 3.2.4

  • ngx-graph version: ^4.1.1
  • Angular version: 5.0.0
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript 2.4.2 | ES5]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arcteezycommented, Mar 14, 2019

There are two workarounds but they are not perfect solutions.

  • Use flags --aot=false and --build-optimizer=false during building.

  • Change versions of ngx-graph to v5.0.0 and ngx-charts to v8.1.0.

0reactions
rpvsencommented, Mar 20, 2019

@arcteezy & @assafsun thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

getting error while creating build in angular 5 - node.js
The problem seems to be with npm and node and not with Angular CLI. Try upgrading Node to v 5.9.1 and re-install node_modules....
Read more >
Angular CLI ng build fails - Visual Studio Feedback
0 & Angular 5.0.0 application to compile and I just cant. My setup is: An NPM task with custom command to install the...
Read more >
building a project including mdb pro for production with AoT
When building an angular 6 project including MDB Pro 6.1.1 downloaded through the ... as per the downloaded project, the build fails if...
Read more >
angular/angular-cli - Gitter
@nbuso don't use beta.22, it wasn't meant for release and is called experimental ... is this a build issue, or a problem with...
Read more >
Npm install command failing with message "could not find ...
But then, suddenly, it stops with the error: npm ERR! code 1 npm ERR! path ... npm install --g --production windows-build-tools.
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