You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have seen error event in the documentation and have been trying to use it but I am not able to get the event.detail.type as said there. I have prepared a demo glitch.
You should see normal behavior if you open this link . But if you open this one it will try to place not existing model and will throw an error in the console. Thrown error object doesn't have event.detail.type as far as I have seen, it looks like this.
TypeError: Cannot read properties of undefined (reading 'scene')
at get scene [as scene] (model-viewer.js:53505:36)
at [clone] (model-viewer.js:53564:34)
at [clone] (model-viewer.js:53872:29)
at Rd.clone (model-viewer.js:53524:33)
at Jc.load (model-viewer.js:50020:34)
at async n (model-viewer.js:51576:21)
Am I doing something wrong? Demo code is also here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have seen error event in the documentation and have been trying to use it but I am not able to get the
event.detail.type
as said there. I have prepared a demo glitch.You should see normal behavior if you open this link . But if you open this one it will try to place not existing model and will throw an error in the console. Thrown error object doesn't have
event.detail.type
as far as I have seen, it looks like this.Am I doing something wrong? Demo code is also here
Beta Was this translation helpful? Give feedback.
All reactions