Project scenario:
In the process of testing 3D effects, there was a problem with vite suddenly. I found many methods on the Internet and didn’t know where the problem was.
Problem description
This is the error code of VSC. The error code running on HBx is different from this.
Solution:
Use after downloading yarn
yarn install
After reinstalling the dependency, you can run it
I don’t know why, because NPM run serve will also fail to get after vite is packaged
npm run build
npm run serve
You can build first and then serve.
Read More:
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] vite2+vue3 jsx Error: React is not defined
- [Solved] Vue3 Error: Failed to resolve component:xxx
- [Solved] Vue Error: Failed to resolve directive: scroll-to
- [Solved] Temporary error: Error: spawn E:\vue3-vite\my-app\node_modules\esbuild\esbuild.exe ENOENT
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] ant design pro vue Startup Error: ERROR Failed to compile with 1 error 20:34:09 error in ./src/components/Num
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Vue2.x vue-lazyload Error: Failed to resolve directive: lazy
- Vue installation @ Vue/cli error: npmerr gyp err
- Vue2.0: How to Use vue3 api to encapsulate Axios
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- Full screen scrolling by Vue + Vue awesomeswiper
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- Vue warn]: vue3 element Component emit Pass Event Error
- How to Solve Vue3 Import lodash error
- Vue Error: error in mounted hook: TypeError: invalid src type
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)