beyonk-group/svelte-carousel

TypeError: Siema is not a constructor

Looease opened this issue · 4 comments

Hello.
I have a Svelte app and have recently updated my "rollup-plugin-svelte" to "6.1.1". Since doing this, the Carousel is no longer rendering and I am seeing the below error.

Do you have any fixes for this?
Screenshot 2022-02-11 at 11 57 42

Screenshot 2022-02-11 at 12 01 50

Same for me

Fixed in #79

I just got finished wiring my component wrapper up to the database / fileserver... and ofc there is some critical/breaking bug for the tool I chose.

@mkaski TYVM for fixing this! I hope we can get it approved and merged so I can get this code out of my dev environment, a custom developer build isn't going to make it to even a staging server over here.

FWIW (don't want to derail): i confirmed removing the * importing Siema gets past the first error. And I then get this one:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'cloneNode')
    at e.value (siema.min.js:1:4284)
    at e.value (siema.min.js:1:3696)
    at new e (siema.min.js:1:2169)
    at Carousel.svelte:32:15
    at run (index.mjs:18:12)
    at Array.map (<anonymous>)
    at index.mjs:1415:41
    at flush (index.mjs:746:17)

If I get a chance, I'll pull your fork locally and try it out.