报错如下:
常规引入:
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
Vue.use(ElementUI);
new Vue({
el: '#app',
render: h => h(App)
});
因为项目中用到了mavonEditor,所以引入时合并了
Vue.use(mavonEditor,ElementUI)
然后就报了这个错误,分批次引入就没问题
Vue.use(ElementUI)
Vue.use(mavonEditor)
(我现在还不知道为什么,知道了再来补充)