I use babel to convert it but the swiper is not working and it shows this error in console.
I go to the line where this error happen and add console.log()
.
There’s no problem getting these elements but somehow $(...).each
just doesn’t work.
What can i do to fix this?
Or is there something wrong when converting?
My .babel
is simple, as below
{
"presets": ["es2015"]
}