Angular - Error

Can you please help with this error when doing PROD build
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

1 Reply 1 reply marked as answer

JA Jesus Arockia Sankaran S Syncfusion Team September 30, 2020 07:27 AM UTC

Hi vin, 

Thank you for contacting Syncfusion support. 

We would let you know that this memory issue happens because of insufficient RAM and we request you run the “ng build --prod” as below to increase memory size. 


node --max-old-space-size=X node_modules/@angular/cli/bin/ng build --prod 
 
Where X = (2048 or 4096 or 8192 o..) is the value of memory 


Please get back to us if you need any further assistance in this. 

Regards, 
Jesus Arockia Sankaran S 


Marked as answer
Loader.
Up arrow icon