v10.0.0 restructuring is a breaking change for module imports #6921
FrancescoAiello01
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We just updated to the latest version of Swiper and discovered that v10.0.0 includes a breaking change because modules now need to be imported from
swiper/modules
rather thanswiper
.Previously, you could do this:
import { Navigation, Pagination, Manipulation } from 'swiper';
Now, it needs to be:
import { Navigation, Pagination, Manipulation } from 'modules/swiper';
I saw there were a couple of posts in the discussions related to this, and I think it would be great to update the release notes to mention this to help others who are upgrading.
Beta Was this translation helpful? Give feedback.
All reactions