使用swiper插件时,报错did you register the component correctly? For recursive components

434 阅读1分钟

使用swiper插件时,报错did you register the component correctly? For recursive components, make sure to provide the "name" option

(在学习慕课网小米商城的项目5-8_首页轮播功能实现课程时)

原因:虽然已经安装了vue-awesome-swiper,但是当前的vue-awesome-swiper版本太高了

解决方案:

// 卸载当前版本的vue-awesome-swiper
npm uninstall vue-awesome-swiper
// 再安装指定版本的vue-awesome-swiper,降低一下版本就解决了
cnpm install vue-awesome-swiper@3.1.3 --save-dev