Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular API fatal error handler returned after process out of memory

I'm deploying angular 7 app to Azure, an error

API fatal error handler returned after process out of memory

is appear when run ng build --prod even in local system when running ng build --prod no error found except some warning

WARNING in Invalid background value at 9045:14. Ignoring. WARNING in Invalid background value at 9064:14. Ignoring. WARNING in Invalid background value at 9067:14. Ignoring. WARNING in Invalid background value at 9070:14. Ignoring. WARNING in Invalid background value at 9073:14. Ignoring. WARNING in Invalid background value at 11642:14. Ignoring.

here is the log Activity log

here is package.json

package.json

Thanks in advance!

like image 811
Kenana Reda Avatar asked Jul 16 '26 04:07

Kenana Reda


2 Answers

Looks like you need more gb memory to compile the project in wherever that ng build happens. Either increase memory, or do the ng build in your local, and commit the dist, then in Azure you just deploy with no build step.

ng build --prod --build-optimizer
like image 77
freepowder Avatar answered Jul 17 '26 17:07

freepowder


Just increase the budget of type initial from 5mb in the maximum error to whatever you needed in Angular.json

enter image description here

like image 25
Pranav Nigam Avatar answered Jul 17 '26 17:07

Pranav Nigam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!