SSENSE / vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js
https://ssense.github.io/vue-carousel/
MIT License
1.72k stars 504 forks source link

Cannot read property 'forEach' of undefined #475

Closed ccdilan closed 9 months ago

ccdilan commented 5 years ago

Cannot read property 'forEach' of undefined

Current Behavior I am install vue-carousel using yarn and add template code copied form documantation. then there is an error saying Cannot read property 'forEach' of undefined.

Input Code and steps to reproduce

vue component

<carousel>
    <slide>
        Slide 1 Content
    </slide>
    <slide>
         Slide 2 Content
    </slide>
</carousel>

plugins/main.js

import Vue from 'vue';
import Carousel3d from 'vue-carousel-3d';
import VueCarousel from 'vue-carousel';

Vue.use(VueCarousel);
Vue.use(Carousel3d);

nuxt.config.js

/*
  ** Plugins to load before mounting the App
  */
  plugins: [
    {src:'~/plugins/main.js',ssr:false}
  ],

Environment

Screen Shot 2019-09-03 at 3 32 20 PM

Screen Shot 2019-09-03 at 3 42 11 PM

Additional context/Screenshots