Title: Build fails with JavaScript heap out of memory · Issue #12645 · angular/angular-cli · GitHub
Open Graph Title: Build fails with JavaScript heap out of memory · Issue #12645 · angular/angular-cli
X Title: Build fails with JavaScript heap out of memory · Issue #12645 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] t...
Opengraph URL: https://github.com/angular/angular-cli/issues/12645
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build fails with JavaScript heap out of memory","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Command (mark with an `x`)\r\n```\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n```\r\n\r\n### Versions\r\n\u003c!--\r\nOutput from: `node --version`, `npm --version` and `ng --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra? High Sierra?)\r\n-->\r\nnpm 6.4.1\r\nyarn 1.9.4\r\nAngular CLI: 7.0.1\r\nNode: 8.12.0\r\nOS: darwin x64\r\nAngular: 7.0.0\r\n... animations, cdk, common, compiler, compiler-cli, core, forms\r\n... http, language-service, material, material-moment-adapter\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router, service-worker\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.10.1\r\n@angular-devkit/build-angular 0.10.1\r\n@angular-devkit/build-optimizer 0.10.1\r\n@angular-devkit/build-webpack 0.10.1\r\n@angular-devkit/core 7.0.1\r\n@angular-devkit/schematics 7.0.1\r\n@angular/cli 7.0.1\r\n@angular/pwa 0.10.1\r\n@ngtools/webpack 7.0.1\r\n@schematics/angular 7.0.1\r\n@schematics/update 0.10.1\r\nrxjs 6.3.3\r\ntypescript 3.1.3\r\nwebpack 4.19.1\r\n\r\n### Repro steps\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run (incl args), packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nrun ng build client --prod\r\n\r\n### The log given by the failure\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\n```\r\n92% chunk asset optimization TerserPlugin\r\n\u003c--- Last few GCs --->\r\n\r\n[6911:0x102801e00] 224585 ms: Mark-sweep 1318.9 (1444.5) -> 1318.9 (1444.5) MB, 1195.0 / 0.0 ms allocation failure GC in old space requested\r\n[6911:0x102801e00] 225921 ms: Mark-sweep 1318.9 (1444.5) -> 1318.9 (1429.5) MB, 1336.0 / 0.0 ms last resort GC in old space requested\r\n[6911:0x102801e00] 227268 ms: Mark-sweep 1318.9 (1429.5) -> 1318.9 (1429.5) MB, 1347.5 / 0.0 ms last resort GC in old space requested\r\n\r\n\r\n\u003c--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 0x130c21da5879 \u003cJSObject>\r\n 1: /* anonymous */ [/node_modules/source-map/lib/source-node.js:~342] [pc=0xa501c16fd08](this=0x130cfc80c2f1 \u003cJSGlobal Object>,chunk=0x130c584834b1 \u003cString[1]: .>,original=0x130cc679e159 \u003cObject map = 0x130cb6748611>)\r\n 2: SourceNode_walk [/node_modules/source-map/lib/source-node.js:~221] [pc=0xa501c57db1e](t...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n 1: node::Abort() [/usr/local/bin/node]\r\n 2: node::FatalException(v8::Isolate*, v8::Local\u003cv8::Value>, v8::Local\u003cv8::Message>) [/usr/local/bin/node]\r\n 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]\r\n 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]\r\n 5: v8::internal::(anonymous namespace)::ElementsAccessorBase\u003cv8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits\u003c(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handle\u003cv8::internal::JSObject>, unsigned int) [/usr/local/bin/node]\r\n 6: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]\r\n 7: 0xa501a5042fd\r\nerror Command failed with signal \"SIGABRT\".\r\n```\r\n\r\n### Desired functionality\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nv6 doesn't have any issue building the same app.\r\n\r\n### Mention any other details that might be useful\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\nI can't shared any code as it's a big client project, and I suspect it the size that's causing the issue as basic apps build ok.","author":{"url":"https://github.com/dottodot","@type":"Person","name":"dottodot"},"datePublished":"2018-10-19T09:06:33Z","url":"https://github.com/angular/angular-cli/issues/12645"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ace51529-c00b-6e70-026f-6ca7eeb17859 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B400:3A4875:145C390:1B1A934:6B012E1C |
| html-safe-nonce | 0e6c426f31dca641fb388ddc30fbe85f215d310fb842ff338f66a53db29e7854 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDAwOjNBNDg3NToxNDVDMzkwOjFCMUE5MzQ6NkIwMTJFMUMiLCJ2aXNpdG9yX2lkIjoiNzQ5NDI0MTkwMDYxNDk4NzI5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ff64ed5a6bcc583f4aea8a39b44b61b8d0833f022c85a2994ff9f5ba90f877f |
| hovercard-subject-tag | issue:371869236 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/12645/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b7c430c6090a8ed5848cc31bfb7b8e06cf3c2893028ab3252ea82f0f7a01fb3/angular/angular-cli/issues/12645 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b7c430c6090a8ed5848cc31bfb7b8e06cf3c2893028ab3252ea82f0f7a01fb3/angular/angular-cli/issues/12645 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dottodot |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width