vue-slick-carousel
vue-slick-carousel copied to clipboard
Cannot read properties of undefined (reading 'prevArrow')
I just installed this component into my project and I have this error when trying to show up the basic example of the main website
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prevArrow') vue-slick-carousel.umd.js:10810 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prevArrow')
Any idea whats wrong? I'm using Vue 3
Me too!!! :(
Same issues happened with me too!! :(
Hello everybody! I have the same issue, I'm using Vue 3 and I would like to know how to resolve it or if it is a compatibility issue with Vue 3.
M
Hello everybody! I have the same issue, I'm using Vue 3 and I would like to know how to resolve it or if it is a compatibility issue with Vue 3.
Try to use nuxtjs instead of vue 2 or 3 just did that and worked as well
Same issue here, on vue 3.
same issue over here...
same issue over here toooooo
same issue over here toooooo Uncaught (in promise) TypeError: Cannot read properties of null (reading 'type')
saaame
same :( Any1 have solution?
having the same issue as well
same issue
same for me, i use vuejs 3. anyone have a solution?
Same issue with laravel, vue js, inertia js
Me too, Laravel 8, Jetstream, Inertia, Vue 3
same issue here...
same issue here after migrate :(
same issue here ...😑 what is the solution to this problem??
I don't know if this is related or not, but since I've found a work-around for a similar issue with vue-slick-carousel
and nuxt.js
v2 here's my 2 cents:
The specific error I was getting was
TypeError: Cannot read properties of undefined (reading 'length')
I don't know why I wasn't getting it until now and which specific change in my source code started triggering it (I didn't change the lib version for sure, though), but I've been getting this error every time I would change page and the component was about to be destroyed.
I practically worked around it, by killing the component before it has a chance to crash.
// BaseSlider.vue
<template>
<div>
<div class="mb-6">
- <VueSlickCarousel v-bind="vueSlickCarouselConfig" ref="sliderEl" :arrows="false">
+ <VueSlickCarousel v-if="$slots.default && $slots.default.length" v-bind="vueSlickCarouselConfig" ref="sliderEl" :arrows="false">
<slot></slot>
</VueSlickCarousel>
</div>
<div class="flex flex-row gap-3">
<button @click="showPrev">
<NuxtImg
src="/img/icons/prev.svg"
width="40"
height="40"
loading="lazy"
decoding="async"
alt="arrow pointing left"
class="select-none"
/>
</button>
<button @click="showNext">
<NuxtImg
src="/img/icons/next.svg"
width="40"
height="40"
loading="lazy"
decoding="async"
alt="arrow pointing right"
class="select-none"
/>
</button>
</div>
</div>
</template>
<script lang="ts">
const vueSlickCarouselConfig = {
infinite: false,
speed: 600,
variableWidth: false,
adaptiveHeight: false,
autoplay: false,
slidesToScroll: 1,
swipeToSlide: true,
slidesToShow: 3,
responsive: [
{ breakpoint: 1280, settings: { slidesToShow: 2 } },
{ breakpoint: 640, settings: { slidesToShow: 1 } },
],
}
export default defineComponent({
setup() {
const sliderEl = ref()
function showPrev() {
sliderEl.value?.prev()
}
function showNext() {
sliderEl.value?.next()
}
return { vueSlickCarouselConfig, sliderEl, showPrev, showNext }
},
})
</script>
TypeError: Cannot read properties of undefined (reading 'prevArrow')
Using Vue3 .. Same problem
Vue3, same issue here ...😑
Vue3, same issue here ...😑
at least iam using this package.. it's work in vue3 poperly .. https://ismail9k.github.io/vue3-carousel/examples.html#autoplay-example
Same, ive face this issue.What can i do..?
same issue here ...😑 what is the solution to this problem??
is there a solution to this error Cannot read properties of undefined (reading 'prevArrow')
hey man. Just Use swiper slider.it's very easy to use. iam using it without any problem. https://swiperjs.com/vue https://swiperjs.com/demos#space-between
use you can use swiper slider .. it's very easy man.. https://swiperjs.com/demos#space-between
On Tue, Sep 13, 2022 at 6:44 PM alfred thompson ovie < @.***> wrote:
is there a solution to this error Cannot read properties of undefined (reading 'prevArrow')
— Reply to this email directly, view it on GitHub https://github.com/gs-shop/vue-slick-carousel/issues/214#issuecomment-1245360010, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMWCZZQXU42YIHTERPI3QILV6BZKJANCNFSM5EUT6CYQ . You are receiving this because you commented.Message ID: @.***>
same issue.
same issue.
Same issue