Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ineffective mark-compacts near heap limit allocation failed - javascript heap out of memory angular

// Use upto 6 GB (So, you can change 6000 in below, based on your need)

scripts: {
  "build": "node --max_old_space_size=6000 ./node_modules/@angular/cli/bin/ng build", 
  "serve": "node --max_old_space_size=6000 ./node_modules/@angular/cli/bin/ng serve"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ineffective #heap #limit #allocation #failed #javascript #heap #memory #angular
ADD COMMENT
Topic
Name
1+3 =