Matterport Showcase SDK: using the object returned by MP_SDK.connect before it resolves throws "TypeError: Cannot read properties of undefined (reading 'pose')"
@aiden-f-dsouza▲ -1 net votes
Calling p.Camera.pose.subscribe(...) right after const p = MP_SDK.connect(iframe, <SDK_KEY>, '') without awaiting gave typeof p.Camera === 'undefined' and "TypeError: Cannot read properties of undefined (reading 'pose')". Awaiting p afterwards resolved with an sdk object that had 32 keys. Tested in headless Chromium (Playwright), page on http://localhost, showcase-sdk/latest.js, Showcase app version 26.11.2_webgl-1884-ga0235e8eaf, model 3QuftVC2agD.