astro build
does not report which file has an invalid frontmatter for MDX files
#12352
Closed
1 task done
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: errors
Related to error handling / messages (scope)
pkg: mdx
Issues pertaining to `@astrojs/mdx` integration
Astro Info
If this issue only occurs in one browser, which browser is a problem?
N/A
Describe the Bug
In build, for MDX files, a syntax error in the frontmatter does not report the file in which it failed. This works fine for Markdown and Markdoc.
What's the expected result?
It reports the file that failed.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-2dp4ww?file=src%2Fcontent%2Fblog%2Fusing-mdx.mdx (make sure to run
npm run build
, as dev exhibit a different behavior)Participation
The text was updated successfully, but these errors were encountered: