-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
Getting Typescript errors when using data-table
for Svelte 5
#1709
Comments
You are using |
We don't have any dependencies to |
While it is true that removing Typescript will remove type errors, I would very much prefer to keep Typescript. Is there a way to make these components use Typescript as well? As is, I copied much of the code from the tutorial / documentation, and I feel like that should work. |
Your project was initialized using the javascript template. You should re-initialize the project and choose typescript. |
Is there a faster way then running |
I am not sure on the full setup for sveltekit but you should be able to swap out the jsconfig for a tsconfig and then just set typescript to |
Thanks, I started a new project opting in typescript in the |
By upstream I meant tanstack/table (since that is what you're using for the data-table) |
Ah I see then you are most likely correct. |
Describe the bug
I followed the tutorial from https://next.shadcn-svelte.com/docs/components/data-table
First of all, thanks for the tutorial, it's really nice!
However, I noticed there were TypeScript errors like so:
on
<Table.Root>
and and<Table.Header>
and<Table.Row>
and<Table.Head>
etc. Basically on allTable.
something.Same issue with the
Button
&Input
components.Here is the whole repo if you wanted to see.
Coincidentally, there is an issue with filtering numerical columns there, but that is probably an upstream issue. Still, if you could could guide me if the error is on my end, I would be very thankful :)
I made a comment on Shadcn issue too (which is I think mistakenly stale)
Reproduction
https://github.com/PetrLaskevic/Tanstack-Table-Filter-Svelte/
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: