Closed BghinC closed 2 months ago
Thanks for the issue, I've taken a look and it appears to be an upstream Nuxt issue with using nested island components.
The simple workaround is to move the sub component into the components dir.
See https://stackblitz.com/edit/nuxt-starter-vdfkge?file=components%2Fglobals%2FMyTemplateItem.vue
I have a template in
components/OgImage
called usingdefineOgImageComponent
. That template uses other components, but one of them uses<slot>
. It used to work a couple of months ago.I recently observed two different behaviors:
<slot>
are not rendered in the image.<slot>
from the component fixes the image.You can find the reproduction here