nuxt 引入swiper插件报错 Cannot resolve swiper/dist/css/swiper.css
程序员文章站
2022-07-15 12:46:33
...
npm install vue-awesome-swiper
执行完毕后 运行 npm run dev
后报错: Cannot resolve "swiper/dist/css/swiper.css"
之前是baidu了个教程最后发现还得去官网看
https://github.com/surmon-china/vue-awesome-swiper
npm install swiper vue-awesome-swiper --save
只装vue-awesome-swiper 不行
我当前使用的版本是4.1.1 目前最新版本