Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

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/[email protected]^8 @angular/[email protected]^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.

Tags:

Node.Js

Typescript

Angular

Related

How to concatenate a list with a nested list? How to await all results from an IAsyncEnumerable<>? Azure CDN Microsoft Standard Rules Engine Rewrite URL for single-page-application How to create NavMenu with collapsible submenu in .Net Core Blazor app Is a fully qualified class name down to global scope ever required for out-of-line member function definitions? Any suggestions on a way to get user comments back from a Xamarin Forms application. Possibly something using appcenter.ms? Private inheritance causing problem in c++ Is casting to simd-type undefined behaviour in C++? Storybook w/ react-router - You should not use <Link> outside <Router> Prevent function taking const std::string& from accepting 0 Is there a way to concatenate grouped lists into a set in Java 8 in one line? How to get default compile-time value of Auto-Implemented property C# 6.0 after it changed?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy