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

⚠️ Swiper7/8/9: "Module not found: Can't resolve 'swiper/react' (vue/...)" #4871

Closed
nolimits4web opened this issue Aug 26, 2021 · 1 comment

Comments

@nolimits4web
Copy link
Owner

If you have such issue with Swiper 7, it means your bundler/environment/framework/tooling doesn't support ESM packages. You should update your bundler/environment/framework/tooling or stay on Swiper 6.

You can check this guide about using pure ESM packages.

Repository owner locked and limited conversation to collaborators Aug 26, 2021
@nolimits4web nolimits4web pinned this issue Aug 26, 2021
@nolimits4web nolimits4web changed the title Swiper7: "Module not found: Can't resolve 'swiper/react' (vue/svelte/...)" ⚠️ Swiper7: "Module not found: Can't resolve 'swiper/react' (vue/svelte/...)" Aug 26, 2021
@nolimits4web
Copy link
Owner Author

If you use it with Create React App (or similar env without ES modules support), there is a workaround that might help https://swiperjs.com/react#usage-with-create-react-app

@nolimits4web nolimits4web changed the title ⚠️ Swiper7: "Module not found: Can't resolve 'swiper/react' (vue/svelte/...)" ⚠️ Swiper7/8: "Module not found: Can't resolve 'swiper/react' (vue/svelte/...)" Apr 26, 2022
@nolimits4web nolimits4web changed the title ⚠️ Swiper7/8: "Module not found: Can't resolve 'swiper/react' (vue/svelte/...)" ⚠️ Swiper7/8/9: "Module not found: Can't resolve 'swiper/react' (vue/...)" Feb 1, 2023
@nolimits4web nolimits4web unpinned this issue Jul 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant