swiper
swiper copied to clipboard
Swiper with React 18 causes TypeError: Cannot read properties of undefined (reading 'wrapperClass')
Check that this is really a bug
- [X] I confirm
Reproduction link
none
Bug description
Cannot read properties of undefined (reading 'wrapperClass')
Expected Behavior
No response
Actual Behavior
Uncaught runtime errors: × ERROR Cannot read properties of undefined (reading 'wrapperClass') TypeError: Cannot read properties of undefined (reading 'wrapperClass') at getWrapperSelector (http://localhost:3000/static/js/bundle.js:119691:35) at getWrapper (http://localhost:3000/static/js/bundle.js:119702:27) at Swiper.mount (http://localhost:3000/static/js/bundle.js:119705:22) at Swiper.init (http://localhost:3000/static/js/bundle.js:119732:26) at mountSwiper (http://localhost:3000/static/js/bundle.js:123636:10) at http://localhost:3000/static/js/bundle.js:124018:62 at commitHookEffectListMount (http://localhost:3000/static/js/bundle.js:83814:30) at invokeLayoutEffectMountInDEV (http://localhost:3000/static/js/bundle.js:85474:17) at invokeEffectsInDev (http://localhost:3000/static/js/bundle.js:87400:15) at commitDoubleInvokeEffectsInDEV (http://localhost:3000/static/js/bundle.js:87381:9)
Swiper version
6.8.4
Platform/Target and Browser Versions
Windows, Chrome
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- [X] 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