Swiper Vue: Uncaught TypeError when using SwiperSlide as a wrapper
See original GitHub issueCheck that this is really a bug
- I confirm
Reproduction link
https://codesandbox.io/s/swiper-navigation-vue-forked-t0r5bc?file=/src/App.vue
Bug description
Check the browser console. You get the warning and error:
Unhandled error during execution of mounted hook
Uncaught` TypeError: Cannot read properties of undefined (reading ‘value’) at VM54 swiper_vue.js:1229:22
This only happens, if I use my own Slide as a wrapper to add some extra content.
Expected Behavior
No error and warning. You should use the <swiper-slide>
in a wrapper as well.
Actual Behavior
Swiper is not initialized.
Swiper version
^8.0.0
Platform/Target and Browser Versions
mac
Validations
- Follow our Code of Conduct
- Read the docs.
- Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
- Make sure this is a Swiper issue and not a framework-specific issue
Would you like to open a PR for this bug?
- I’m willing to open a PR
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:7
Top Results From Across the Web
Failed to execute getComputedStyle when using Swiper
Very easy to fix this issue (Remove logos from this element <div class="swiper-wrapper logos"> ). Share.
Read more >Swiper Vue.js Components
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
Read more >how to get current slide element index in swiper js react
That worked perfect, and you can put your arrows outside the wrapper with ease ... <div class="swiper-wrapper"> <div class="swiper-slide">Slide 1</div> <div ...
Read more >All Swiper.js Instances in Elementor are Now Exposed
Swiper uses the class 'swiper-container' in the slider wrapper element. ... jQuery instance of the carousel's 'swiper-container' element using the ID/class ...
Read more >vue-awesome-swiper - npm Package Health Analysis - Snyk
Swiper component for Vue For more information about how to use this package see ... <swiper-slide>Slide 3<swiper-slide> <template #wrapper-end><span>Wrapper ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I gave up with this plugin…
Same issue using Vue 2.7.x