Closed ErriourMe closed 2 years ago
I have a problem with this slider in Nuxt 2.15.8. I added module in buildModules, then called <ssr-carousel> component:
<ssr-carousel>
<ssr-carousel ref="reviewsSlider" class="virtual-slider"> <div v-for="(item, i) in data" :key="`review-item-${i}`" class="slide" > <ReviewItem class="reviews-block__item-card" :data="item" :index="i" has-image @selectedItem="showFull" /> </div> </ssr-carousel>
After that I'm receiving error (as if the module is not loaded)
Unknown custom element: \<ssr-carousel> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Why?
All works if load component directly:
components: { ... SsrCarousel: () => import('vue-ssr-carousel'), },
Huh, it's working fine for me with the buildModules load style 🤷
buildModules
I have a problem with this slider in Nuxt 2.15.8. I added module in buildModules, then called
<ssr-carousel>
component:After that I'm receiving error (as if the module is not loaded)
Why?