beyonk-group / svelte-carousel

A super lightweight, super simple Carousel for Svelte 3
MIT License
213 stars 38 forks source link

Carousel Crashes randomly on Navigation. #50

Open michaelcuneo opened 3 years ago

michaelcuneo commented 3 years ago

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
ekafyi commented 3 years ago

I used the solution in https://github.com/beyonk-adventures/svelte-carousel/issues/35, it worked perfectly.