Angular API fatal error handler returned after process out of memory

9.4k Views Asked by At

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!

2

There are 2 best solutions below

1
On BEST ANSWER

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
0
On

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

enter image description here