I am working on an ecommerce application that is multilayered using angular for its frontend .When I serve the application using ng serve the application is served to my local host but later on it crashes and displays a JS out of memory error and its exits.
I tried increasing the heap memory in my local angular and global angular using –max-old-space-size=4096 in both Packages.json file in my root folder and windows terminal but I am still getting this error:
error message
Charles Mwangi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
Try setting up heap memory size to 8192.
PS: Might not be related but try and delete cache of your angular build from .angular to free up space. It can take space in GBs.