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 two reasons:
First error I'm getting is Error: 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
.
Second error I'm getting is because of imports in SCSS code: E.g. @import "@styles/mixins.scss";
. It seems like svelte-check
doesn't know about paths set up in tsconfig.json
.
Any ideas on how to fix these errors? Thanks.