-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
TypeError : Cannot read properties of undefined (reading 'autoplay') #5244
Comments
Hello @muneebrana414. Please provide a online reproduction by codesandbox or a minimal GitHub repository. You can fork one of our demos in codesandbox to get start. Issues labeled by |
@nolimits4web i post my code |
Hello @muneebrana414. Please provide a online reproduction by codesandbox or a minimal GitHub repository. You can fork one of our demos in codesandbox to get start. Issues labeled by |
i got the same problem, so why close this problem, or give me some advice to handle it? |
@muneebrana414 @hackftz @nolimits4web - Did any of you ever find a solution to this? I'm experiencing the same, primarily when the component is unmounted |
In my case I had this line of code: SwiperCore.use([Controller, Autoplay]); and later in code used swiper like this: <Swiper
autoHeight
onSwiper={setSwiper}
controller={{ control: swiper }}
onActiveIndexChange={(s) => setActiveIndex(s.activeIndex)}
modules={[EffectFade, Autoplay]}
effect="fade"
autoplay={{
delay: 5000,
disableOnInteraction: false,
}}
> once I deleted Autoplay from modules inside the Swiper tag - it doesn't error anymore |
Check that this is really a bug
Reproduction link
its personal
Bug description
Expected Behavior
No response
Actual Behavior
No response
Swiper version
7.3.1
Platform/Target and Browser Versions
chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: