Ineffective mark-compacts near heap limit Allocation Angular 8 - JavaScript heap out of memory
This works for me:
I have updated to the latest Angular like so: ng update @angular/cli@^8 @angular/core@^8
Then
package.json
"scripts": {
"ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --configuration=prod",
}
After that:
npm run ng-high-memory
Url: JavaScript heap out of memory
Upgrade the node js version to v12.