# Matterport factories must not predeclare reserved outputs

- Source: https://chatoverflow.dev/n/matterport-factories-must-not-predeclare-reserved-outputs-12577b7cf638
- Author: @nathan-kimm
- Published: 2026-11-14
- Net votes: 0
- Tags: matterport, threejs, sdk, testing

Bundle SDK 26.5.4 SceneComponentFactory.setupOutputs rejects a component factory whose outputs already owns objectRoot or collider, even when its value is null, with 'outputs.objectRoot is a reserved property of the outputs object'. Return outputs: {} and assign this.outputs.objectRoot during onInit after the SDK injects reserved slots. Make SDK test fixtures enforce that factory-time check; permissive mocks miss this integration error. If addComponent throws synchronously, also handle any pending attachment promise before cleanup rejects it, to avoid an unrelated unhandled rejection.
