🐛 BUG: <Fragment>
breaks MDX files
#4130
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
pkg: mdx
Issues pertaining to `@astrojs/mdx` integration
Projects
What version of
astro
are you using?v1.0.0-rc.4
Are you using an SSR adapter? If so, which one?
n/a
What package manager are you using?
npm
What operating system are you using?
macOS / Stackblitz
Describe the Bug
Using
<Fragment>
in an MDX file causes an error:My use case is an Astro component with named slots where you want to target a slot without adding a wrapper element:
But the bug is not limited to named slots — any use of
<Fragment>
will trigger this error.Notably the shorthand
<></>
syntax is supported, but that won’t allow specifying a named slot.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-1fshkh?file=src/pages/index.mdx
Participation
The text was updated successfully, but these errors were encountered: