beyonk-group/svelte-carousel

Carousel Crashes randomly on Navigation.

michaelcuneo opened this issue · 1 comments

When navigating around my sapper app, I randomly get crashes with the Carousel unmounting.

index.mjs:192 Uncaught (in promise) TypeError: Cannot read property 'removeChild' of null
    at detach (index.mjs:192)
    at detach_dev (index.mjs:1557)
    at Object.destroy [as d] (Slider.svelte:29)
    at Object.destroy [as d] (Carousel.svelte:14)
    at destroy_component (index.mjs:1407)
    at Object.destroy [as d] (Slider.svelte:12)
    at destroy_component (index.mjs:1407)
    at Object.destroy [as d] (index.svelte:17)
    at destroy_component (index.mjs:1407)
    at App.svelte:24

I used the solution in #35, it worked perfectly.