Open
Description
Vue version
3.4.35
Link to minimal reproduction
Steps to reproduce
Add another template around the template slot
<template>
<Comp>
<template #item>
<slot />
</template>
</Comp>
</template>
so that it looks like this
<template>
<Comp>
<template v-if="slots?.default">
<template #item>
<slot />
</template>
</template>
</Comp>
</template>
TypeError: Cannot read properties of undefined (reading 'type')
What is expected?
No type error, or an error saying that this syntax isn't support (i'm not sure if this is actually supposed to work?)
What is actually happening?
TypeError: Cannot read properties of undefined (reading 'type')
at getMemoedVNodeCall (compiler-sfc.esm-browser.js:17146:12)
at createChildrenCodegenNode (compiler-sfc.esm-browser.js:22946:23)
at createCodegenNodeForBranch (compiler-sfc.esm-browser.js:22892:7)
at Array.<anonymous> (compiler-sfc.esm-browser.js:22782:32)
at traverseNode (compiler-sfc.esm-browser.js:18413:15)
at traverseChildren (compiler-sfc.esm-browser.js:18365:5)
at traverseNode (compiler-sfc.esm-browser.js:18407:7)
at transform (compiler-sfc.esm-browser.js:18302:3)
System Info
No response
Any additional comments?
No response