Wikiki / bulma-carousel

Display a carousel
MIT License
135 stars 98 forks source link

Uncaught TypeError: t is undefined #119

Open digiassignment opened 1 year ago

digiassignment commented 1 year ago

I am using below bulma css and js files in my flask project: https://unpkg.com/bulma@0.9.0/css/bulma.min.css https://cdn.jsdelivr.net/npm/bulma-carousel@4.0.4/dist/css/bulma-carousel.min.css https://cdn.jsdelivr.net/npm/bulma-carousel@4.0.4/dist/js/bulma-carousel.min.js

// Initialize all div with carousel class
var options = {
    initialSlide: 1,
    slidesToScroll: 3,
    slidesToShow: 3,
    infinite: true,
    autoplay: true,
    autoplaySpeed: 2000,
    pagination: false
};
bulmaCarousel.attach('#slider', options);

and I am getting below error: "Uncaught TypeError: t is undefined value https://cdn.jsdelivr.net/npm/bulma-carousel@4.0.4/dist/js/bulma-carousel.min.js:1"

Need some help to fix this. image

lucaFiorini commented 11 months ago

I'm having the same issue

corvalanlara commented 9 months ago

This error happened to me when I had the same amount of items in my carousel as the slidesToShow attribute. I just added more items to the carousel and it worked.