Oct 23, 2022
0
Level 2
Angular, javascrip heap out of memory
l clonned a project on github, then installed all dependencies successfully but the problem is while running ng serve i get the following error:
| Generating browser application bundles (phase: additional asset processing)...
<--- Last few GCs --->
[12680:03F72D28] 545641 ms: Mark-sweep 991.8 (1042.5) -> 987.3 (1046.0) MB, 3470.2 / 0.1 ms (average mu = 0.198, current mu = 0.015) allocation failure scavenge might not succeed
[12680:03F72D28] 549530 ms: Mark-sweep 995.3 (1046.0) -> 988.4 (1048.7) MB, 3834.1 / 0.1 ms (average mu = 0.116, current mu = 0.014) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00A45D3F v8::internal::Heap::AllocateExternalBackingStore+1551
tried --max-old-space-size=8000 to no success. even tried values like --max-old-space-size=17000 my machine has 20gb of RAM
my Node -v 16.13.0 my npm -v 8.1.0
link to project repo that i clonned: https://github.com/petter-ka/youpez-admin
Please or to participate in this conversation.