svelte-carousel
svelte-carousel copied to clipboard
svelte-carousel don't appear to be written in CJS
I use SvelteKit and Typescript
Facing the same error, currently.
same here
@yndotdev & @aditiakusuma
See comments here: https://github.com/vadimkorr/svelte-carousel/issues/27
Just add "type": "module" to package.json
edit: I mean to the maintainers of this library to do so
@yndotdev & @aditiakusuma
See comments here: #27
While this works, it would be great if the issue was resolved.
adding
"type": "module",
to package.json seems to indicate that this is a viable fix.
although the component did run fine for me even without it.
adding
"type": "module",
to package.json seems to indicate that this is a viable fix. although the component did run fine for me even without it.
It's a matter of how modern your environment is, the more modern the stricter it is.
Should be fixed in https://github.com/vadimkorr/svelte-carousel/pull/126