(vue-awesome-swiper)使用vue-awesome-swiper报错找不到依赖的css

今天使用vue-awesome-swiper的时候报错:
(vue-awesome-swiper)使用vue-awesome-swiper报错找不到依赖的css_第1张图片
搞了很久 发现错得很让人吐血~!…
我安装的版本:

  "dependencies": {
    "core-js": "^3.6.5",
    "swiper": "^6.0.4",
    "vue": "^2.6.11",
    "vue-awesome-swiper": "^4.1.1",
    "vue-router": "^3.2.0"
  },

官方说明了安装6.0版本的话需要引入另外一个css

// If you use Swiper 6.0.0 or higher
import 'swiper/swiper-bundle.css'

但是可能我是瞎了 没看见。引入的是这个:

// import style
import 'swiper/css/swiper.css'

所以如果Swiper版本是6.0以上就引入第一个就好!!!!!!!!

https://github.com/surmon-china/vue-awesome-swiper

你可能感兴趣的:(#,框架及插件)