Unhelpful error message when unexpected MDX content found #6226
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: errors
Related to error handling / messages (scope)
What version of
astro
are you using?2.0.10
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 Ubuntu 20.04
Describe the Bug
I was trying to follow the tutorial but using some files from my old blog that contained a little
{description}
placeholder and Astro crashed with an unhelpful error message.Because I didn't realise it was related to that seemingly harmless snippet, I went down the rabbit 🐰 🕳️ hole for a couple of hours 😂
Steps to reproduce
npm create astro@latest
src/content/post1.md
.mdx
{description}
before the first paragraphWhat happens
Fails to render and shows unhelpful error message
What should happen
Helpful error message.
Link to Minimal Reproducible Example
https://github.com/vanessacor/astro-mdx-error
Participation
The text was updated successfully, but these errors were encountered: