Skip to content

Any example to use it in sveltekit? #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kevin4dhd opened this issue Oct 3, 2023 · 1 comment
Open

Any example to use it in sveltekit? #4

kevin4dhd opened this issue Oct 3, 2023 · 1 comment

Comments

@kevin4dhd
Copy link

I'm trying to use this library in sveltekit but I get a lot of errors, like this:

image

Also an example with svelte would be good since I don't know how to implement it correctly

kryops added a commit that referenced this issue Oct 4, 2023
@kryops
Copy link
Owner

kryops commented Oct 4, 2023

Hi @kevin4dhd ,

it looks like SvelteKit can only handle TypeScript via <script lang="ts">, not <script type="ts">. I had already changed that when upgrading to Svelte 4, but haven't got around to publishing it.

I now published it as v0.2.0, and also added a minimal SvelteKit example.

Could you give it a try and let me know if it works now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants