diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index fa1f08c3c9c..50f8c75f030 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -1086,7 +1086,11 @@ function baseCreateRenderer( // since they are either generated by the compiler, or implicitly created // from arrays. mountChildren( - n2.children as VNodeArrayChildren, + // #10007 + // such fragment like `<>` will be compiled into + // a fragment which doesn't have a children. + // In this case fallback to an empty array + (n2.children || []) as VNodeArrayChildren, container, fragmentEndAnchor, parentComponent,