I’m having trouble loading an IFC model in a React app I’m developing using @speckle/viewer (I’ve tested v2.24.0 and some earlier versions).
Main Issues:
In my React app: I receive the error Error: Could not get Extension of type Ts. Is it created? when calling viewer.loadObject().
On app.speckle.systems: When viewing the same model, the browser console shows WebGL: INVALID_FRAMEBUFFER_OPERATION: Framebuffer is incomplete: Attachment has zero size., although the model does render.
In some earlier versions of the viewer, I also noticed a TypeError: Cannot read properties of undefined (reading 'transparent').
The iframe embed works for basic visualization in my app. Has anyone experienced this before? Could you help me figure out how to resolve these issues?
You would get that if you would not have a CameraController extension created on the viewer and you’d call loadObject with zoomToObject = true (which is default if not otherwise specified). To quickly avoid this issue, you can either create a CameraController extension, either call loadObject with zoomToObject = false explicitly.
You can ignore those warnings, they are harmless
We’ve identified a scenario where that error was thrown and have recently made a fix. If you continue to encounter it with the latest version please let us know the conditions in which you are encountering it