-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue 3.4 issue #32
Comments
In the vitepress example, the "popup4" component seems to be broken, which uses Story component with slots. Is this the same problem? E: Seems to be broken in the vue example too. |
whyframe/packages/vue/src/shared.js Line 51 in c3fd0ca
Seems that checking loc.source for the slot fixes the problem: node.children?.some((c) =>
c['content']?.trimLeft().startsWith('<slot')
|| c['loc']?.source?.trim().startsWith('<slot')
) E: Also adding <iframe
data-why
>
<slot
<slot />
</iframe> |
Thanks for sharing your solution @roitto. I noticed that it's caused by a breaking change in [
{
type: 2,
content: '\n <slot />\n ',
loc: {
start: [Object],
end: [Object],
source: '\n <slot />\n '
}
}
] to: [
{
type: 1,
tag: 'slot',
ns: 0,
tagType: 2,
props: [],
children: [],
loc: { start: [Object], end: [Object], source: '<slot />' },
codegenNode: undefined,
isSelfClosing: true
}
] This shouldn't be happening in a minor/patch, but alas I'll make a fix for this to prevent the error. |
Fixed in |
Hi, I am using whyframe with my vitepress based documentation site. (Documenting a vue component library).
I am upgrading to vue 3.4 but this seems to break my examples. Anyone else running into issues with this minor vue update?
The text was updated successfully, but these errors were encountered: