0

My angular project was running great for the past year.

the past 2 days when trying to ng serve/ ng build am getting this error:

Angular CLI: 11.2.14

Node: 14.16.1

OS: win32 x64

I tried to increase the memory, in the terminal where you run your Node.js process. I also tried all tips from this following link:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in Ionic 3

But nothing helped I am getting the same error.

<--- Last few GCs --->

[20140:000001C7D28EAD20]    76097 ms: Mark-sweep (reduce) 4081.8 (4101.4) -> 4081.0 (4103.1) MB, 1492.4 / 0.1 ms  (average mu = 0.207, current mu = 0.036) allocation failure scavenge might not succeed
t mu = 0.004) allocation failure scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 00007FF7D1D1046F napi_wrap+109311
 2: 00007FF7D1CB5156 v8::internal::OrderedHashTable<v8::internal::OrderedHashMap,2>::NumberOfElementsOffset+33302
 3: 00007FF7D1CB5F26 node::OnFatalError+294
 4: 00007FF7D2582B4E v8::Isolate::ReportExternalAllocationLimitReached+94
 5: 00007FF7D256792D v8::SharedArrayBuffer::Externalize+781
 6: 00007FF7D2411CCC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1516
 7: 00007FF7D241D04A v8::internal::Heap::ProtectUnprotectedMemoryChunks+1258
 8: 00007FF7D241A1F9 v8::internal::Heap::PageFlagsAreConsistent+2457
 9: 00007FF7D240EDE1 v8::internal::Heap::CollectGarbage+2033
10: 00007FF7D240D005 v8::internal::Heap::AllocateExternalBackingStore+1317
11: 00007FF7D242D2A7 v8::internal::Factory::NewFillerObject+183
12: 00007FF7D215CC31 v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+1409
13: 00007FF7D260B50D v8::internal::SetupIsolateDelegate::SetupHeap+463949
14: 0000024EB299DC87`


  [1]: https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas

'

0 Answers0