It was a memory overflow problem
Solution:
Add the following code to the build modification in package.json:
npx --max-old-space-size=2048
Packing succeeded!!
Read More:
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- Vue error: errno -4058 [How to Solve]
- [Solved] Vue item error: Regeneratorruntime is not defined
- [Solved] Error spawn CMD enoent errno when starting Vue project: – 4058
- Solution to some map files in JS folder after Vue packaging (remove the map. JS file)
- [Solved] Vue-cli3 running or packaging error: JS memory overflow
- Vue-cli2 sub environment packaging
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue Compile Error: JavaScript heap out of memory
- [Solved] Some chunks are bigger warning on vite packaging
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- Please transfer a valid prop path to form item
- Full screen scrolling by Vue + Vue awesomeswiper
- VUE Error: Vue Error in nextTick: “RangeError: Maximum call stack size exceeded“
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Vue warn]: Error in mounted hook: “Error: please transfer a valid prop path to form item“
- Vue warn]: vue3 element Component emit Pass Event Error
- Vue installation @ Vue/cli error: npmerr gyp err