-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails when exporting a type using MarkdownLayoutProps #763
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Got it. To clarify I exported it to stop the @typescript-eslint/no-unused-vars rule from complaining, what should I do instead? Should I just configure the rule to not apply for this type in astro files? |
Maybe you can use a |
Yes, suppressing the error is what I'm doing now, with I opened the issue because the error message seemed to me like a weird one, thought it might be a bug, but feel free to close if this is expected. Thanks! |
Sorry, I'm not aware of a better way to handle this |
@Princesseuh can you take a look if this error message can be improved? |
This seems to be a compiler bug, maybe something to do with the export + the generic argument confusing the compiler? |
@Princesseuh Yeah that sounds right. I recall seeing this error message on generic types before 🤷 |
Moving to the compiler repo. fwiw, removing the |
Could be related to #554 |
Confirming that this is a duplicate of #554 |
What version of
astro
are you using?1.6.6
Are you using an SSR adapter? If so, which one?
No
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
Exporting a type using
MarkdownLayoutProps
causes the following error.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-yaiimj?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: