-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
Previous version is angular v4
Description
We are migrating the cms product from angular v4 to angular v14. While trying to run the angular v14 application locally (command ng serve), we are getting the following error - "FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory".
We have tried to add more space as well by executing the command "node -max_old_space_size=8192./node_modules/@angular/cli/bin/ng serve". But still, the issue is not resolved.
The screenshot of the error is attached here for reference. It would be helpful if you can provide any suggestions to resolve this issue.
Minimal Reproduction
-
commands run : a. ng serve
b. node -max_old_space_size=8192./node_modules/@angular/cli/bin/ng serve -
packages : Here , I attached my package.json (package-json.txt file) and package-lock.json (package-lock-json.txt file)
package-json.txt
package-lock-json.txt
Exception or Error
No response
Your Environment
Angular CLI: 14.2.11
Node: 16.14.2
Package Manager: npm 8.5.0
OS: win32 x64
Angular: 14.3.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1402.11
@angular-devkit/build-angular 14.2.11
@angular-devkit/core 14.2.11
@angular-devkit/schematics 14.2.11
@angular/cli 14.2.11
@angular/material 14.2.7
@schematics/angular 14.2.11
rxjs 7.5.7
typescript 4.7.4
Anything else relevant?
No response