-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Typescript complains #266
Comments
I have similar code in this repository in SvelteKit demo: https://github.com/iconify/iconify/blob/main/components-demo/sveltekit-demo/src/lib/header/Header.svelte But I'm not seeing any errors. Can you create a basic reproduction? |
try importing |
Hello, Thanks so much for the feed back. I've installed sveltekit from scratch, I install Iconify and it's still happening. At first I thought it was due to Svelte for Vscode extension, but not 100% sure about it. Thanks for feedback Regards |
can you add https://github.com/unplugin/unplugin-icons/blob/main/examples/sveltekit/src/app.d.ts#L1 |
@cyberalien Svelte 4 has changed the defintiion, you're using Svelte 3, for Svelte 4 you need to change to this one: |
Thanks! So I need to release new package for Svelte 4... on it. |
Try Seems to work correctly in my tests with latest Svelte 4. I'm in process of doing more tests, but most likely will finish testing only tomorrow. |
@PavelJacoboGonzalez you need to use |
Awesome. Working as @userquin suggested.
Thanks so much for support. |
Hello
I'm currently implementing iconify for a small project with Sveltekit, I'm learning also Sveltekit, but when I try to use it as per documentation I'm getting following typescript error. I have checked documentation but I could not find reference to how to use iconify and typescript.
please check image below.
I've been following documentation for iconify + svelte and my Svelte app is using typescript.
tscondig.json
svelte.config.js
Thanks so much
regards
The text was updated successfully, but these errors were encountered: