Uncaught TypeError: boolean is not a function with Owl Carousel

I am trying to make a carousel with Owl Carousel 2 , but when I try to paginate with the mouse (drag and drop), it generates this error: Uncaught TypeError: boolean is not a function

My HTML:

 <div class="anim-carousel"> <ul class="carousel"> <?php for($i = 0;$i<30;$i++): ?> <li class="item"> <img src="http://lorempicsum.com/simpsons/100/100/<?= rand(1, 6); ?>"> </li> <?php endfor; ?> </ul> </div> 

My Javascript:

 <script type="text/javascript" src="/js/owl.carousel.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.carousel').owlCarousel({ items: 5, }); }); </script> 

Errors on my console: Uncaught TypeError: boolean is not a function with Owl Carousel

+5
source share
1 answer

You are using an outdated version. Use the latest version: https://github.com/OwlFonk/OwlCarousel2#building . Unfortunately, this will take some time until the next beta, I'm currently pretty busy.

0
source

Source: https://habr.com/ru/post/1201075/


All Articles