Skip to content
New issue

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

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

Already on GitHub? # to your account

Svelte VSCode extension shows error #143

Closed
Z0lid opened this issue Apr 9, 2023 · 2 comments
Closed

Svelte VSCode extension shows error #143

Z0lid opened this issue Apr 9, 2023 · 2 comments

Comments

@Z0lid
Copy link

Z0lid commented Apr 9, 2023

When using the SvelteTable component, the Svelte VSCode extension show me the following error:

Argument of type 'typeof import("./node_modules/svelte-table/src/types")' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'.
  Type 'typeof import("./node_modules/svelte-table/src/types")' provides no match for the signature 'new (args: { target: any; props?: any; }): ATypedSvelteComponent'.

Possible causes:
- You use the instance type of a component where you should use the constructor type
- Type definitions are missing for this Svelte Component. If you are using Svelte 3.31+, use SvelteComponentTyped to add a definition:
  import type { SvelteComponentTyped } from "svelte";
  class ComponentName extends SvelteComponentTyped<{propertyName: string;}> {}ts(2345)

As Svelte itself doesn't complain about this, it could be something with the extension, but I'm guessing this is not the case because this doesn't happen with any other component in my app.

@dasDaniel
Copy link
Owner

The type implementation is not finished😞
I'll fix it up to have it working.

@dasDaniel dasDaniel mentioned this issue Apr 16, 2023
@dasDaniel
Copy link
Owner

released a fix, I hope this fixes it for you

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

No branches or pull requests

2 participants