Describe the Bug
A comment in the frontmatter with a text matching the props with a generic type causes astro check to crash.
For example:
---
// export type Props<T> = {}
export type Props<T> = {
abc: number;
};
---
It's not clear to me exactly what the conditions are for the bug to occur, but it seems both the comment and the Props type must have a generic type.
Steps to Reproduce
- Open reproduced example.
- Wait for installation to complete.
- Run
npm run check in terminal.
- Crash occurs.
- Look inside
./src/components/component.astro to see file that causes the issue.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-m2mgaw1s?file=src/components/component.astro,package.json&on=stackblitz