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

Cannot read properties of undefined (reading 'slideClass') when use nextjs Image #6322

Closed
5 of 6 tasks
nuintun opened this issue Feb 2, 2023 · 5 comments
Closed
5 of 6 tasks
Labels

Comments

@nuintun
Copy link

nuintun commented Feb 2, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-nextjs-bugs-g9e7pq?file=%2Fpages%2Findex.tsx

Bug description

Cannot read properties of undefined (reading 'slideClass') when use nextjs Image

image

image

Expected Behavior

No error

Actual Behavior

Throw error

Swiper version

9.0.0

Platform/Target and Browser Versions

Windows11, Chome 109

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
@nuintun nuintun added the React label Feb 2, 2023
@Altroo
Copy link

Altroo commented Feb 2, 2023

I confirm, same thing i have, just by switching inspect from web to mobile, then back to web & i got it.

Anyway there's no clear example on how to use Lazy module, so i've reverted to "swiper": "^8.4.7",

@nolimits4web
Copy link
Owner

Reproduction link you have provided doesn't illustrate the issue

@nuintun
Copy link
Author

nuintun commented Feb 3, 2023

@nolimits4web swiper-nextjs-bugs

@gkpo
Copy link

gkpo commented Feb 3, 2023

Same here :(
edit - can also confirm that reverting back to "swiper": "^8.4.7" fixes the issue for now

@Altroo
Copy link

Altroo commented Feb 5, 2023

why is this issue closed ? it's still there, and we can reproduce it.

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

4 participants