MDX with frontmatter reports errors on wrong line #11707
Labels
- P2: nice to have
Not breaking anything but nice to have (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?
No response
Describe the Bug
When an
.mdx
page with an error uses a frontmatter, the error is reported on the wrong line (frontmatter is not included):What's the expected result?
Error should be reported on the actual problematic line (12)
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: