Skip to content
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 errors on Svelte-Kit #5

Open
lucagrandicelli opened this issue Sep 6, 2022 · 0 comments
Open

Typescript errors on Svelte-Kit #5

lucagrandicelli opened this issue Sep 6, 2022 · 0 comments

Comments

@lucagrandicelli
Copy link

I'm trying to use this library on svelte-kit but i'm facing some issues with TS. In particular, if a declare my <script> tag in my svelte page as <script lang="ts"> everything works fine but VSCode TS compiler raises up some warnings like the following when hovering on the form element:

"Element does not support attributes because type definitions are missing for this Svelte Component or element cannot be used as such.

Underlying error:
JSX element class does not support attributes because it does not have a '$$prop_def' property.ts(2607)"

which is related mainly to the fact that svelte-up, as a third party library, seems not to have properly type declarations.

Do you have any idea how to overcome this? Thnx.

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

1 participant