Closed marceloverdijk closed 1 week ago
astro check
is a type checker, similar to tsc
. At this point, the behavior you describe is expected.
This may change in the future as we experiment more with content intellisense (currently experimental), but for now, this is intended.
Thanks @Princesseuh for the clarification. Is there another ticket to track this, or should I perhaps create a feature request?
You can post a feature request here: https://github.com/withastro/roadmap/discussions
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I'm having blog content defined as (note the
categories
array with the allowed enum values):When I have a post in mdx like all works as expected:
But when I make a typo in the category, e.g.
categories: ['InvalidCategory', 'Another category']
, theastro check
does not come back with an error:When I run
astro build
then it gives the expected error:What's the expected result?
An error when running
astro check
.Link to Minimal Reproducible Example
.
Participation