Closed laszlo1337 closed 11 months ago
Not sure about Svelte but looks like it's related to how you build your project. This package distributes as es6 code only.
That's what is essentially the problem because as far as I know all svelte packages are es6 and this just should work right away (I took a peek into the library code and did not notice anything sus). There's nothing custom about my project build either, the same as if created with create-svelte app starter
Not sure about create-svelte, never works with it, but maybe it require es6 files as *.mjs
and not as *.js
(like in this package), or something else...
I have created a PR with updated readme, hopefully saves some time for potential users
Cheers!
Hello.
Using svelte 4 I cannot make this library work, here's the error I'm getting:
here's how it's set up: ImageZoom.svelte