I’m coming back to Babylon after a year pause, and I started a project involving a GLB file import. It worked fine a few days ago, and today, the page crashes, even when I strip down my entire code.
I found the issue seems to come from the interactivityUtils.ts file located here.
The error shows this :
This is justa case of version mismatch. I am not sure why you use the loader from our CDN, but the minified babylon from cloudflare, but the version should be consistent. This works:
Yes, your solution fixes it for me. Actually I’m still bugged as to how but hey, I’ll take it. I don’t know why I had two different links, I supposed I grabbed the CDN in different places and it was working for a while so I didn’t question it.
The problem is a mismatch in versions. These classes were added quite recently, and i can only assume that the version of babylon you have linked just doesn’t have these classes. You coul dhave used the loader of this specific version and it would work as well: