nartc / angular-three

🧊 THREE.js integration for Angular 🧊
https://angular-three.netlify.app/
MIT License
306 stars 26 forks source link

[V5 beta] TypeError: Cannot read properties of undefined (reading 'dispatchEvent') #97

Closed IRobot1 closed 2 years ago

IRobot1 commented 2 years ago

My V5 version of physics examples is here

Whenever I switch between examples (choose in left panel), the follow error appears in the browser console.

THREE.Scene: .dispose() has been removed. ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'dispatchEvent') TypeError: Cannot read properties of undefined (reading 'dispatchEvent')

This didn't happen in V4.

nartc commented 2 years ago

It's a bug and I'm not sure if I fixed it. I just published beta.6. Can you give it a try? And this is probably the last bug fix beta for the day as I'm gonna do some work :D

EDIT: beta.8 should fix it. I tested on your repo.

IRobot1 commented 2 years ago

Beta 8 fixes that and other similar problems I was seeing. All the physics examples I had working in V4 are now working in V5.

Thanks for all your help today.

I'm now going to finish working on the remaining constraints examples.