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