Trouble Loading Objects with Viewer API 2.0 "Exception has occurred: TypeError: Cannot read properties of undefined (reading 'layers')"

I’ve been trying to migrate all of my old code over to viewer api 2.0

I’m getting a weird error here, where it says “cannot read properties of undefined (reading ‘layers’)”.
When looking at my object on speckle web it shows it no problem.

Any idea here?

1 Like

Hi @shuzmm

There’s nothing apparently wrong with the code you are running. Can you please share the stream with us so we can have a look?