Vue3 + vite installation element plus error resolution
1. The console reports an error when running the project
Solution:
1 delete the node_Modules folder and package-lock.json
2 modify package.json
3 modify Vue version number must be above 3.2.2
4 reinstall I, but add – force to force installation, otherwise an error will be reported
npm i --force
Element plus could not find the problem in index.css
In main.js
Solution:
The solution is also very simple. Now that you have installed the element plus dependency, you can’t find the file. The probability is that the path has changed. So I manually turned to node modules and found that the whole theme chat folder was moved
Read More:
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- How to Solve Vue add element Install Error
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- [Solved] vite2+vue3 jsx Error: React is not defined
- Vue warn]: vue3 element Component emit Pass Event Error
- [Solved] Temporary error: Error: spawn E:\vue3-vite\my-app\node_modules\esbuild\esbuild.exe ENOENT
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element
- Front end initialization Vue element admin error [How to Solve]
- Vue wran name Error: Unkown custom element [How to Solve]
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined
- Vue element component V-for error [How to Modify)
- [Solved] ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf
- [Solved] Vue Element Date plug-in reports an error in form validation
- [Solved] Element form method resetfields() error: vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read properties of undefined (reading ‘indexOf’)
- Vue Install less Error: While resolving: [email protected]
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- [Solved] Vite packing error: some chunks are larger than 500kb after minification
- [Solved] Some chunks are bigger warning on vite packaging
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)