swiper icon indicating copy to clipboard operation
swiper copied to clipboard

I am using react18+typescript, Thumbs way, but got the following error.

Open biaoma opened this issue 2 years ago • 3 comments

Check that this is really a bug

  • [X] I confirm

Reproduction link

https://codesandbox.io/s/elastic-wind-e5oome?file=/src/App.js

Bug description

Hello: I am using react18+typescript, Thumbs way, but got the following error.

  1. TypeError: Cannot convert undefined or null to object
  2. The above error occurred in the <Swiper> component:

Expected Behavior

No response

Actual Behavior

No response

Swiper version

8.3.2

Platform/Target and Browser Versions

Windows chrome 98.0.4758.102

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

biaoma avatar Aug 13 '22 09:08 biaoma

Temporary fix

     thumbs={{
              swiper: thumbsSwiper && !thumbsSwiper.destroyed ? thumbsSwiper : null,
            }}

michalvadak avatar Aug 15 '22 12:08 michalvadak

thank you very much

biaoma avatar Aug 15 '22 12:08 biaoma

Same error here ;/

lucasm avatar Sep 20 '22 15:09 lucasm

I'm still having this issue, even without using the Thumbs module

pipozoft avatar Nov 04 '22 01:11 pipozoft

@pipozoft same for me

callmevladik avatar Jan 20 '23 08:01 callmevladik

Any update? @nolimits4web

349989153 avatar May 30 '23 01:05 349989153

@michalvadak Thanks!

Vlas1414 avatar Aug 21 '23 09:08 Vlas1414

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.

If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with issue

nolimits4web avatar Oct 24 '23 12:10 nolimits4web