diff --git a/src/core/nodeOps.ts b/src/core/nodeOps.ts index c337e360f..7d9895c16 100644 --- a/src/core/nodeOps.ts +++ b/src/core/nodeOps.ts @@ -78,7 +78,7 @@ export const nodeOps: RendererOptions = { }, insert(child, parent) { if ( - (child?.__vnode.type === 'TresGroup' || child?.__vnode.type === 'TresObject3D') && + (child?.__vnode?.type === 'TresGroup' || child?.__vnode?.type === 'TresObject3D') && parent === null && !child?.__vnode?.ctx?.asyncResolved ) {