Package file error in react webpack
Problem: The translation is: running the development startup project with npm or running the build package with npm will report an emittingFATAL error: invalid mark compression approaching the heap limit Allocation failed-JavaScript heap out of memory
问题:用npm run dev启动项目或者npm run build打包会报emittingFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Method: Expand memory
1. Shortcut key Win+R to open the running window, run npm install -g increase-memory-limit
2. Run increase-memory-limit in the project folder, the memory expansion is completed, and then start the project.
npm install -g increase-memory-limit
Note: After the above bread installation is complete, you must go to the next step, otherwise it will be useless
increase-memory-limit