Vue element UI project
The default size limit of V8 engine for memory use is 1.4g. You can set the limit through the node.js command to solve this problem. Modify the contents in the package.json file as follows.
"serve": "npx --max_old_space_size=4096 vue-cli-service serve",
"build": "npx --max_old_space_size=4096 vue-cli-service build --modern"
General Vue items
Vue didn’t put package.json
inside scripts
The node command of the script command of the field is hidden. We directly write the option parameters provided in V8 above to scripts
Field node
After the command, it’s OK. An example is as follows
"build": "node --max_old_space_size=4096 build/build.js"
Read More:
- [Solved] Vue Project Modify Page Error: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory
- [Solved] Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Project Package Error: Javascript heap out of memory
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue-cli3 running or packaging error: JS memory overflow
- [Solved] ant design pro vue Startup Error: ERROR Failed to compile with 1 error 20:34:09 error in ./src/components/Num
- [Solved] NPM Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- JavaScript determines whether parentheses are paired.
- Javascript: Simple package localStorge operation
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- Full screen scrolling by Vue + Vue awesomeswiper
- Error when Python executes JavaScript statement
- JavaScript Common Errors List (Reasons & Solutions)
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- Javascript: js websocket disconnected reconnect library ReconnectingWebSocket
- Vue warn]: vue3 element Component emit Pass Event Error
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- [Solved] VS Code Debug JavaScript Error: “crbug/1173575, non-JS module files deprecated”
- Google browser plug-in JavaScript errors Notifier
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function