关于element-ui在rollup打包(2)
来源:6-13 【学习任务】完成销售趋势组件开发

alanZhang123
2022-01-17
老师,上次根据你说的试了一下,在引用组件时,出现了报错,可以帮我看下吗?代码地址:https://gitee.com/alanzhang58/datav-lib
index.js
import ElementUITest from './ElementUITest.vue’
import Element from 'element-ui’
import ‘element-ui/lib/theme-chalk/index.css’
export default function(Vue) {
Vue.component(ElementUITest.name, ElementUITest)
Vue.use(Element)
}
ElementUITest
button-ele
rollup.config.dev.js
external: [
‘sam-test-data’,
‘vue’,
‘element-ui’
]
写回答
1回答
-
扬_灵
2022-01-17
同学你好,这个地址无法访问,如果使用的是vue3需要使用element-plus。element-ui没有支持vue3.
012022-01-18
相似问题