解决报错:Module not found: Error: Can‘t resolve ‘element-plus/lib/theme-chalk/index.css‘

解决报错:Module not found: Error: Can’t resolve ‘element-plus/lib/theme-chalk/index.css’

在vue3中element-ui的安装已经改为npm install --save element-plus了,相应的css样式的引入也改变了,
按照import 'element-plus/lib/theme-chalk/index.css'引入报错
在这里插入图片描述
改为下面代码后就解决了:

import 'element-plus/theme-chalk/index.css'

你可能感兴趣的:(vue3,css,css3,前端)