I'm building a frontend project using Astro. For some dynamic components I added svelte as a UI framework.
Now I want to integrate svelte-check
but the command is failing because of: Type annotations can only be used in TypeScript files.
E.g. export let languageCode: string
doesn't seem to be correct, even though the Astro project compiles fine using npm run build
.
Any ideas on how to fix this error? Thanks.