@@ -159,7 +159,7 @@ To begin, we need to import the modules and their corresponding CSS files from t
159159import React from ' react' ;
160160import { IonContent , IonPage } from ' @ionic/react' ;
161161import { Swiper , SwiperSlide } from ' swiper/react' ;
162- import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper' ;
162+ import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper/modules ' ;
163163
164164import ' swiper/css' ;
165165import ' swiper/css/autoplay' ;
@@ -191,7 +191,7 @@ From here, we need to provide these modules to Swiper by using the `modules` pro
191191import React from ' react' ;
192192import { IonContent , IonPage } from ' @ionic/react' ;
193193import { Swiper , SwiperSlide } from ' swiper/react' ;
194- import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper' ;
194+ import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper/modules ' ;
195195
196196import ' swiper/css' ;
197197import ' swiper/css/autoplay' ;
@@ -223,7 +223,7 @@ Finally, we can turn these features on by using the appropriate properties:
223223import React from ' react' ;
224224import { IonContent , IonPage } from ' @ionic/react' ;
225225import { Swiper , SwiperSlide } from ' swiper/react' ;
226- import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper' ;
226+ import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper/modules ' ;
227227
228228import ' swiper/css' ;
229229import ' swiper/css/autoplay' ;
@@ -272,7 +272,7 @@ We can install the `IonicSlides` module by importing it from `@ionic/react` and
272272import React from ' react' ;
273273import { IonContent , IonPage , IonicSlides } from ' @ionic/react' ;
274274import { Swiper , SwiperSlide } from ' swiper/react' ;
275- import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper' ;
275+ import { Autoplay , Keyboard , Pagination , Scrollbar , Zoom } from ' swiper/modules ' ;
276276
277277import ' swiper/css' ;
278278import ' swiper/css/autoplay' ;
@@ -425,7 +425,7 @@ Accessing these properties can be tricky as you want to access the properties on
425425``` tsx
426426import React , { useState } from ' react' ;
427427import { Swiper , SwiperSlide } from ' swiper/react' ;
428- import { Swiper as SwiperInterface } from ' swiper' ;
428+ import { Swiper as SwiperInterface } from ' swiper/modules ' ;
429429...
430430const Home: React .FC = () => {
431431 const [swiperInstance, setSwiperInstance] = useState <SwiperInterface >();
@@ -466,7 +466,7 @@ If you are using effects such as Cube or Fade, you can install them just like we
466466``` tsx
467467import React from ' react' ;
468468import { IonContent , IonPage , IonicSlides } from ' @ionic/react' ;
469- import { EffectFade } from ' swiper' ;
469+ import { EffectFade } from ' swiper/modules ' ;
470470import { Swiper , SwiperSlide } from ' swiper/react' ;
471471
472472import ' swiper/css' ;
@@ -493,7 +493,7 @@ Next, we need to import the stylesheet associated with the effect:
493493``` tsx
494494import React from ' react' ;
495495import { IonContent , IonPage , IonicSlides } from ' @ionic/react' ;
496- import { EffectFade } from ' swiper' ;
496+ import { EffectFade } from ' swiper/modules ' ;
497497import { Swiper , SwiperSlide } from ' swiper/react' ;
498498
499499import ' swiper/css' ;
@@ -521,7 +521,7 @@ After that, we can activate it by setting the `effect` property on `swiper` to `
521521``` tsx
522522import React from ' react' ;
523523import { IonContent , IonPage , IonicSlides } from ' @ionic/react' ;
524- import { EffectFade } from ' swiper' ;
524+ import { EffectFade } from ' swiper/modules ' ;
525525import { Swiper , SwiperSlide } from ' swiper/react' ;
526526
527527import ' swiper/css' ;
0 commit comments