dasDaniel / svelte-table

A svelte table implementation that allows sorting and filtering
https://dasdaniel.github.io/svelte-table/
MIT License
535 stars 40 forks source link

v0.6.2 breaks SvelteKit build #168

Closed leonklingele closed 10 months ago

leonklingele commented 10 months ago

Hi there 😊

The most recent release, v0.6.2, unfortunately breaks our build using SvelteKit:

> svelte-kit sync && svelte-check --tsconfig ./tsconfig.json
====================================
Loading svelte-check in workspace: /path/to/project
Getting Svelte diagnostics...
/path/to/project/…:
Error: Cannot find module 'svelte-table' or its corresponding type declarations. (ts)
    import SvelteTable from 'svelte-table';
…

v0.6.1 was working fine. Is there any workaround we need to apply to get this project running again using SvelteKit?

Thanks for helping!

Refs. https://github.com/dasDaniel/svelte-table/pull/166

dasDaniel commented 10 months ago

thanks for reporting, clearly the change to exports for vite-plugin-svelte does not work for svelte-kit. I'll try and find a way to get them both to work. For now, please use "svelte-table": "0.6.1", as the dependency.

dasDaniel commented 10 months ago

@leonklingele found the issue. Should be good now. Released fix in 0.6.3

Saibamen commented 10 months ago

Fixed by https://github.com/dasDaniel/svelte-table/commit/ec1b6c2ea86f79963c6b3f2b3d88be00be53987b

leonklingele commented 10 months ago

Builds fine again 😃 Thanks for the quick fix!