React-id-swiper: CSS moved in Swiper 6.1.1

Created on 14 Aug 2020  路  6Comments  路  Source: kidjp85/react-id-swiper

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?

Most helpful comment

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

All 6 comments

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

Thank you @ywroh!

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

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

any updates with navigation and progress functionalities?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davemin picture davemin  路  6Comments

Pixel-Daze picture Pixel-Daze  路  4Comments

Sallywa picture Sallywa  路  5Comments

mbenjrinija picture mbenjrinija  路  4Comments

maheshambiga picture maheshambiga  路  4Comments