vasyabigi / angular-slick

Angular directive for slick-carousel
http://vasyabigi.github.io/angular-slick/
MIT License
500 stars 237 forks source link

Cannot read property 'add' of null #178

Open padejar opened 7 years ago

padejar commented 7 years ago

I'm using angular-slick on my ionic app. It works most of the time, however sometimes there are occurence in which the slider destroyed and stacking up the slider item. I checked the console there is an error like the following: TypeError: Cannot read property 'add' of null at c.b.initADA (slick.js:18) at c.b.init (slick.js:17) at new c (slick.js:17) at n.fn.init.a.fn.slick (slick.js:18) at angular.slick.js:79 at ionic.bundle.js:32328 at completeOutstandingRequest (ionic.bundle.js:19199) at ionic.bundle.js:19475 (anonymous) @ ionic.bundle.js:26799 (anonymous) @ ionic.bundle.js:23512 (anonymous) @ ionic.bundle.js:32331 completeOutstandingRequest @ ionic.bundle.js:19199 (anonymous) @ ionic.bundle.js:19475

I'm wondering why is it sometimes happens?