Element reported an error and could not find the element-ui/lib/style.css file

the project built by vue uses element-ui to report errors all the time

entry js file configuration


the reference should be fine, but I don"t know what went wrong

May.28,2022

if you open the corresponding file, the location of elementui may have changed


node_modules deleted the problem of re- npm install


element component itself. Solution: create a new style.css file under the corresponding folder or upgrade the vue-cli version to 3 can solve


.

the installation is not correct. Isn't it clear what's written above? you can run npm install-- save element-ui/lib/style.css

finish reinstalling as above

enter

on the command line
 npm install --save element-ui/lib/style.css
Menu