myswiper.slideTo() is not a function
<p>i have this error in console, but i dont understand why</p>

<pre><code>var mySwiper = new Swiper('.swiper-container', {
    speed: 400,
    loop: true,
    slidesPerView:1,
    calculateHeight: true,
    spaceBetween: 50,
    watchActiveIndex: true,
    prevButton: '.swiper-button-prev',
    nextButton: '.swiper-button-next'
});

  $('input[type=radio][name=radio]').change(function() {
    var indx = $(this).val();
    mySwiper.slideTo(indx,400,false);
});
</code></pre>

<p><a href="https://i.stack.imgur.com/qhCe0.png" rel="nofollow noreferrer">screen shot of error</a></p>