Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiper with React 18 causes TypeError: Cannot read properties of undefined (reading 'wrapperClass') #7750

Open
5 of 6 tasks
Bittukr7479 opened this issue Sep 25, 2024 · 0 comments
Labels

Comments

@Bittukr7479
Copy link

Bittukr7479 commented Sep 25, 2024

Check that this is really a bug

  • I confirm

Reproduction link

none

Bug description

Cannot read properties of undefined (reading 'wrapperClass')

image

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

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant