Swiper function fails in for loop: Cannot set property 'control' of undefined #4853
Unanswered
hellogracecho
asked this question in
Q&A
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.
-
Hi.
I'm working on Statamic project with Swiper core js.
I wanted to call Swiper functions with product image gallery with Two ways: main slider + Thumbnails controller
The slider should be init
So I run for loop in case there are more than one button in #1 case.
It works fine in single page but it fails saying
Uncaught TypeError: Cannot set property 'control' of undefined
I imported all the modules I'm using like below:
Where am I missing or doing wrong?
Kind regards,
Grace
Beta Was this translation helpful? Give feedback.
All reactions