This is a (multiple allowed):
V6.1.1
macOS, CHROME
https://codepen.io/believezjp/pen/xxVOboe
EXPLAIN WHAT YOU DID, PREFERABLY WITH CODE EXAMPLES, HERE.
new Swiper('.swiper-container', {
// need pagination
pagination: {
el: '.swiper-pagination',
type: 'bullets'
}
})
use Swiper in a vue.js project, init with pagination, check DOM <div class="swiper-pagination"></div> there is no bullets in pagination DOM.
EXPLAIN WHAT IS TO BE EXPECTED, HERE.
show pagination bullets DOM in <div class="swiper-pagination"></div>
EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE.
P.S. Remember, an issue is not the place to ask questions. You can use Stack Overflow
for that.
Before you open an issue, please check if a similar issue already exists or has been closed before.
i am having the same problem...!! tried to go back to v5.4.5 and it works again... seems to be broken since v6.0.0
this is my setup
HTML:
<div v-swiper="swiperSetting">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(proof, index) in content.items" :key="index">
Test
</div>
<div class="swiper-pagination" />
</div>
</div>
SCRIPT
import { directive } from 'vue-awesome-swiper'
directives: {
swiper: directive
},
and Settings:
swiperSetting: {
direction: 'horizontal',
pagination: {
el: '.swiper-pagination',
clickable: true,
type: 'bullets'
},
spaceBetween: 50,
slidesPerView: 2,
passiveListeners: true,
grabCursor: true,
watchOverflow: true
}
I think this issue is related to vue-awesome-swiper....
I think this issue is related to vue-awesome-swiper....
No, You can try with import Swiper from 'swiper' in your project, it's the same problem. It's not not caused by vue-awesome-swiper.
I'm having the same problem, but after updating from 5.3.6 to 5.4.5. Pagination bullets are no longer shown
You can clearly see it is working correct here https://stackblitz.com/edit/swiper-demo-3-pagination-dhkdwx?file=index.html
There are quite a few bugs that have been closed that refer to pagination bullets missing, so even though the demo is working I think there might still be something weird going on in some configurations. In my case, I could work arround the problem by not passing in a selector but the HTMLElement directly. Maybe this is helpful for anyone facing similar issues.
我遇到了同样的问题,但是从5.3.6更新到5.4.5之后。分页符号不再显示
I known why!
I known why!


but import Swiper from "swiper/swiper-bundle.esm.js" is ok!
@nolimits4web can this be reopened?
Also getting the same issue but did the change suggested by @GitOfZGT and worked fine:
-import Swiper from 'swiper'
+import Swiper from 'swiper/swiper-bundle.esm'
Most helpful comment
I known why!
but
import Swiper from "swiper/swiper-bundle.esm.js"is ok!