react-id-swiper icon indicating copy to clipboard operation
react-id-swiper copied to clipboard

CSS moved in Swiper 6.1.1

Open RilDev opened this issue 4 years ago • 6 comments

Hi, I tried to import the css style as per the "Get Started" documentation https://react-id-swiper.ashernguyen.site/doc/get-started

In the "Stylesheet" section there is the following snippet to import the Swiper stylesheet:

import 'swiper/css/swiper.css';

But I got a Module not found: Can't resolve 'swiper/swiper.css'

So I looked into the package and imported the style like this:

import 'swiper/swiper-bundle.min.css';

It now works for me.

Did I do something wrong or should the docs be updated?

RilDev avatar Aug 14 '20 19:08 RilDev

I found the same thing as you and made a pull request today.

ywroh avatar Aug 18 '20 12:08 ywroh

Thank you @ywroh!

RilDev avatar Aug 19 '20 06:08 RilDev

Thanks it works, but I think navigation functionalities are broken (prev, next button actions and autplay)

buskerone avatar Aug 26 '20 04:08 buskerone

Not only do the navigation functionalities are broken, but the .scss file won't work either. Please fix this.

CloutProject avatar Aug 31 '20 21:08 CloutProject

any updates with navigation and progress functionalities?

caiobozato avatar Oct 28 '20 15:10 caiobozato

i just downgrade Swiper to version 5.4 and its work well with React ID Swiper version 4. Seeing in example codesanbox, it still use Swiper version 5.4 with React ID Swiper ver4 Codesanbox Autoplay

naufaldi avatar Nov 01 '20 09:11 naufaldi