-
Notifications
You must be signed in to change notification settings - Fork 810
Typescript support broken with TS 4.5, can't find type declarations #270
Comments
When I manually add
|
To rule out if it has to do with Typescript 4.5 which was just released: could you try to pin TS to 4.4 and try again? |
@dummdidumm Thanks for your response and I can confirm it does work with typescript 4.4.4! Additionally, I just was about to post that it also works with the following hardcoded path (with typescript 4.5)
I am new to svelte and have been away from the whole JS ecosystem for a bit but will see if i find out more in typescripts changelog :) |
This fixed the issue for me |
Related to #270, quick fix while we figure out what the problem is
This is an TypeScript issue, I created microsoft/TypeScript#46860 for that. I also created sveltejs/svelte#6937 which would solve this independently on our end. |
Error in #270 is fixed through a fix in Svelte core which prevents the TS bug from happening
This is fixed on our end through sveltejs/svelte#6937 , make sure to update to the latest version of Svelte and the error should go away. I still think this is a TS bug ultimately, but thankfully we can work around it with a change on our end. Closing. |
Hi,
I am trying to create a new svelte project with typescript support, but the
build
anddev
scripts seem unable to find type declarations forApp.svelte
, even thoughsrc/global.d.ts
seem to be correct:To Reproduce
Node Version
The text was updated successfully, but these errors were encountered: