vue-awesome-swiper icon indicating copy to clipboard operation
vue-awesome-swiper copied to clipboard

Error in nextTick: property 'removeEventListener' of undefined

Open CodLee opened this issue 6 years ago • 6 comments

when change datas or pages,this components will be destroyed ,then will appearence this warning.

CodLee avatar Jul 11 '18 03:07 CodLee

Same problem here (after upgrading to vue-cli-3):

[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'removeEventListener' of undefined"

screen shot 2018-08-21 at 21 53 11

maybe this could be a solution: https://github.com/SSENSE/vue-carousel/pull/140/commits/18ba873103cda61154e8c7b82823bf997fe6018d

MathiasVie avatar Aug 21 '18 13:08 MathiasVie

Is there a solution for this?

marcohofmann avatar Jan 24 '19 08:01 marcohofmann

I meet the same problem, when I change routers/pages, it will show this error: image I finally find a stupid way :

1.find resourse file : node_modules/swiper/dist/js/swiper.js or anywhere this JS file is 2.In about 5520 line,or find where the function disableDraggable definitied before operate target we should judge whether target exist ,just like this Edition: swiper 4.4.2 image

but I have no idea if your swiper.js was mix up Hope ower can fix it as soon as Possible! Thanks!

peoplewhoneedstruggle avatar Feb 22 '19 08:02 peoplewhoneedstruggle

@peoplewhoneedstruggle @marcohofmann @CodLee swiperOption: {
pagination: { el: '.swiper-pagination', clickable: true, draggable: true, //add this option dynamicBullets: true },

dilovar-91 avatar Mar 16 '20 09:03 dilovar-91

我也遇到这个问题,但是解决了 背景:我是因为有个tab切换,用的是v-if,导致报这个错 解决:把v-if换成v-show

kangkang1995 avatar Apr 10 '20 08:04 kangkang1995

@dilovar-91 thanks ,这对我来说很有用,谢谢

lyx-amo avatar Jun 22 '21 07:06 lyx-amo