Since some time i have sometimes the below error. Mostly, when re-generating the service proxies through the command. Right now, i receive this error with EVERY ng serve command so cant continue :( I saw some hints on the web but they either do not match the situation or work-arounds do not help.
Any help from your side on this?
Thanks and Greets
Ralph
ng serve --host 0.0.0.0 --port 4200
** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
92% after chunk asset optimization SourceMapDevToolPlugin main.js generate SourceMap
<--- Last few GCs --->
[808:0x103000000] 95796 ms: Mark-sweep 1298.2 (1422.2) -> 1298.2 (1422.2) MB, 1129.6 / 0.0 ms allocation failure GC in old space requested [808:0x103000000] 96956 ms: Mark-sweep 1298.2 (1422.2) -> 1298.2 (1421.2) MB, 1159.1 / 0.0 ms last resort GC in old space requested [808:0x103000000] 98102 ms: Mark-sweep 1298.2 (1421.2) -> 1298.2 (1421.2) MB, 1146.2 / 0.0 ms last resort GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x12c4c3ba5879 <JSObject> 1: /* anonymous */ [/projects/infinity/web/node_modules/source-map/lib/source-node.js:~174] [pc=0x55bd21ef8d2](this=0x12c415f02231 <SourceNode map = 0x12c4e2e62131>,chunk=0x12c498042f99 <SourceNode map = 0x12c4e2e62131>) 2: arguments adaptor frame: 3->1 3: forEach(this=0x12c4ef9fa1b9 <JSArray[444955]>) 4: SourceNode_add [/projects/infinity/web/node_modules/source-map/lib/source-n...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 1: node::Abort() [/usr/local/bin/node] 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node] 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node] 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node] 5: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/usr/local/bin/node] 6: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node] 7: 0x55bd20842fd
1 Answer(s)
-
0
Hi,
This is related to NodeJs, you can try the workaround suggested at https://github.com/nodejs/help/issues/1377#issuecomment-403801254