Could not resolve dependency: npm ERR! peer vue@"^2.5.17" from element-ui@2.15.12
element-ui不适配vue3,官方已将vue3版本的更新为element-plus
解决:
npm install element-plus --save
引入
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import elementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css';
const app=createApp(App);
app.use(elementPlus);