diff --git a/src/components/TresCanvas.vue b/src/components/TresCanvas.vue index 91273b90f..cac477f6c 100644 --- a/src/components/TresCanvas.vue +++ b/src/components/TresCanvas.vue @@ -89,8 +89,7 @@ const createInternalComponent = (context: TresContext) => defineComponent({ setup() { const inner = getCurrentInstance()! - - Object.assign(inner.appContext.app, instance.appContext.app) + inner.appContext.app = instance.appContext.app //@ts-expect-error: internal property Object.assign(inner.provides, inner.appContext.provides) if (import.meta.env.DEV) {