我使用element-ui里面的时间线之后,会报错是为什么
vue.min.js:577 [Vue warn]: Unknown custom element: <el-timeline> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
我使用element-ui里面的时间线之后,会报错是为什么
vue.min.js:577 [Vue warn]: Unknown custom element: <el-timeline> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
9 回答1.7k 阅读✓ 已解决
6 回答1.6k 阅读
3 回答1.4k 阅读✓ 已解决
4 回答1.3k 阅读✓ 已解决
3 回答1.1k 阅读
2 回答1.2k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
我看这个问题还找不太大到答案,为了方便后人我特地注册了个账号借此地来说一下怎么解决的。
首先确认自己element的版本是不是有timeline这个组件,这个区看下package.json这个文件,然后看下官网自己版本是不是有这个组件,然后就是打开src/element-ui/index.js这个文件,可以看到,这个文件里没有全部引用elementui包里的组件,在import和use里相应添加一下就好了