question-mark
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.

Pagination Missing on Swiper 6

See original GitHub issue

Pagination missing after updating swiper to version 6 https://codesandbox.io/s/pagination-example-dug1v

Fix from @kouliavtsev You can solve the pagination issue buy doing the following:

Step 1 Update swiper 5.4.5 to 6.1.2

Step 2 Update Slider.tx by adding the lines below.

import SwiperCore, { Pagination } from "swiper"
SwiperCore.use([Pagination])

all modules:

import SwiperCore, { Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Lazy,Controller,A11y,History,HashNavigation,Autoplay,EffectFade,EffectCube,EffectFlip,EffectCoverflow,Thumbs} from "swiper"
SwiperCore.use([Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Lazy,Controller,A11y,History,HashNavigation,Autoplay,EffectFade,EffectCube,EffectFlip,EffectCoverflow,Thumbs])

Here a complete list of modules you may use: https://swiperjs.com/api/#custom-build

Here is the list of additional modules imports: Virtual - Virtual Slides module Keyboard - Keyboard Control module Mousewheel - Mousewheel Control module Navigation - Navigation module Pagination - Pagination module Scrollbar - Scrollbar module Parallax - Parallax module Zoom - Zoom module Lazy - Lazy module Controller - Controller module A11y - Accessibility module History - History Navigation module HashNavigation - Hash Navigation module Autoplay - Autoplay module EffectFade - Fade Effect module EffectCube - Cube Effect module EffectFlip - Flip Effect module EffectCoverflow - Coverflow Effect module Thumbs - Thumbs module

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
kouliavtsevcommented, Jul 22, 2020

You can solve the pagination issue buy doing the following:

Step 1 Update swiper 5.4.5 to 6.0.4

Step 2 Update Slider.tx by adding the lines below.

import SwiperCore, { Pagination } from "swiper"
SwiperCore.use([Pagination])

Here a complete list of modules you may use: https://swiperjs.com/api/#custom-build

3reactions
whyboriscommented, Apr 6, 2021

@jeffceriello I figured it out. In addition to the first line (as before), also include the second line:

import Swiper from 'react-id-swiper';
import SwiperCore, { Pagination } from 'swiper';

and later:

SwiperCore.use([Pagination])

Just as 🙇 @kouliavtsev wrote above 🎉

I got it to work with my Gatsby 👍 https://github.com/whyboris/Health-Impact-Fund/pull/31/commits/42fb91b7a30134a3363ea89e438bc1a4b3870b5d

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swiper pagination not showing - Stack Overflow
If importing Pagination and Navigation does not fix the issue for you, like mentioned above. Make sure you also have ...
Read more >
Pagination is not working on Swiper6 #684 - GitHub
Having the same issue. It seems to be somehow connected to the 6.0.2 version of swiper as I didn't have any problems in...
Read more >
Swiper.js (pagination not working) - Forum | Webflow
Hello, I'm trying to implement swiper.js and I can't make the pagination to work. I tried the progress bar pagination and the bullet...
Read more >
Swiper pagination not showing : r/CodingHelp - Reddit
First time using swiper ,I followed the documentation, I added the html part in my code I initialize it in JS, I initialize...
Read more >
Getting Started With Swiper
If you are upgrading from Swiper 6 to Swiper 7, check out Migration Guide to Swiper 7 ... core version + navigation, pagination...
Read more >

github_iconTop Related Medium Post

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found