You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though this is indeed the direct child of a component, the compiler enters panic mode with the message: panic: Element with a slot='...' attribute must be a child of a component or a descendant of a custom element
Going to move this one to the compiler repo. I think we might be able to support this, but I'll have to do some experiments.
Just FYI, from the compiler's perspective the slot is a child of the expression node, so it isn't at the root of the component. That's why this error is happening.
What version of
astro
are you using?1.0.0-beta.19
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Any way of including named slots with JSX interpolation breaks the compiler.
Even though this is indeed the direct child of a component, the compiler enters
panic
mode with the message:panic: Element with a slot='...' attribute must be a child of a component or a descendant of a custom element
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-idj9xd-ghiwxt?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: