Closed crutchcorn closed 3 weeks ago
When using code like this:
--- interface Props { as: string; } const { as } = Astro.props; const As = as; --- <As> <slot /> </As>
And running pnpm astro check it shows an error:
pnpm astro check
error ts(6196): 'Props' is declared but never used.
npm init astro
https://stackblitz.com/edit/astro-check-errors?file=src%2Fcomponents%2FCard.astro&on=stackblitz
Duplicate of https://github.com/withastro/compiler/issues/927
Describe the Bug
When using code like this:
And running
pnpm astro check
it shows an error:Steps to Reproduce
npm init astro
using templatepnpm astro check
error ts(6196): 'Props' is declared but never used.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-check-errors?file=src%2Fcomponents%2FCard.astro&on=stackblitz