Skip to content
Advertisement

This dependency was not found: *swiper/vue how to fix?

I’m scratching my head because I ran npm i swiper and read through the Swiper Vue docs and it says to import { Swiper, SwiperSlide } from 'swiper/vue which I’ve done and I even get the bundle size showing 95.4K (gzipped: 28.9K).

When I run npm run serve I then get this error

JavaScript

I for the life of me cannot figure out how to import that dependency.

Advertisement

Answer

If you’re using the swiper version 7* then you could face this type of issue.

Github issue 4871

Try downgrading to the v6.7.5 , see if that helps.

Related issue

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement