-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
needs triageIssue needs to be triagedIssue needs to be triaged
Description
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
Metadata
Metadata
Assignees
Labels
needs triageIssue needs to be triagedIssue needs to be triaged