🐛 BUG: check says type import from Svelte file not found #796
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: svelte
Related to the Svelte integration (scope)
Describe the Bug
We got a component library with Svelte components. Those are build and packed using "svelte-package". For each
.svelte
file it creates a.svelte.d.ts
file with the component type class and the props, events and slots.In a TypeScript file i am importing one of those prop types with
import type { Props } from '@org/package/component/Component.svelte'
.astro check
complains since version 0.5.0 that thisProps
is not exported from the file. It definitely is exported.I could also use the barrel file export of the component and then use the
ComponentProps
util type from svelte, but even thenastro check
complains about problems that do not actually exist.Why would
astro check
run checks on any file except.astro
files anyway?Steps to Reproduce
npm init astro
using template framework-svelteCounter.svelte
to export thecount
variable.npx tsc --noEmit
- It does not show errorsnpx astro check
The text was updated successfully, but these errors were encountered: