diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index 9e854b26..54fa4b3f 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -175,7 +175,7 @@ export function renderComponentRoot( treeOwnerId && treeOwnerId !== scopeId ? treeOwnerId + '-s' : null if (needScopeId || slotScopeId) { const extras: Data = {} - if (needScopeId) extras[scopeId] = '' + if (needScopeId) extras[scopeId!] = '' if (slotScopeId) extras[slotScopeId] = '' root = cloneVNode(root, extras) }