Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css

Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css

今天在写项目的时候用到了Swiper插件,执行了npm install swiper vue-awesome-swiper --save,并且也引入了,按照他的提示执行最后还是报错
Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css

将main.js 中 import 'swiper/css/swiper.css' 
应该替换为 import 'swiper/swiper-bundle.css'

Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css
Github上面也有提到这个
Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css

上一篇:哈希散列表(C++力扣题解上)


下一篇:分享一个轮播图快捷实现的网站