Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS moved in Swiper 6.1.1

See original GitHub issue

Hi, I tried to import the css style as per the “Get Started” documentation

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?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

buskeronecommented, Aug 26, 2020

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

CloutProjectcommented, Aug 31, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - CSS moved in Swiper 6.1.1 - - Bountysource
Hi, I tried to import the css style as per the "Get Started" documentation
Read more >
Swiper Changelog
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
Read more >
Disable Swiper Slider if only 1 slide - Stack Overflow
Very clean solution to disable swiping. Used it together with zoom {zoom : true, watchOverflow: true} to display a picture that can be...
Read more >
Swiper - Effect fade - CodeSandbox
<!DOCTYPE html> · <html lang="en"> · <head> · <meta charset="utf-8" /> · <title>Swiper demo</title> · <!-- Link Swiper's CSS --> · <link ·...
Read more >
React Image Slider with Swiper JS from scratch - YouTube
Learn how to build an image carousel in React using Swiper JS in react ... So you should do custom CSS on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found