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

In version 8.2.2, when running unit tests Cannot find "swiper/css" #6492

Closed
6 tasks done
mrfour44 opened this issue Mar 15, 2023 · 1 comment
Closed
6 tasks done

In version 8.2.2, when running unit tests Cannot find "swiper/css" #6492

mrfour44 opened this issue Mar 15, 2023 · 1 comment
Labels

Comments

@mrfour44
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://swiperjs.com/

Bug description

Using swiper in React, you can npm run start, but when running unit tests, error "Cannot find module 'swiper/css'"
The unit tests used react-testing-library. Jest has configured moduleNameMapper as "identity-obj-proxy".
Besides reducing the swiper version, is there any way I can solve it? thank you!

Expected Behavior

No response

Actual Behavior

No response

Swiper version

8.2.2

Platform/Target and Browser Versions

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
@mrfour44 mrfour44 added the React label Mar 15, 2023
@nolimits4web
Copy link
Owner

v8 is not maintained anymore

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

2 participants