requireJS + vue + babylonjs is already referenced and cannot use the method:Cannot read properties of undefined (reading 'Engine')



image

And I use the ‘domcontentloaded’ method , it also does not display properly.

Can you help me?

Please do not forget to add a link to a playground to get a faster answer:

if feels like the babylon package is loaded later than expected. The babylon materials is loaded before babylon, but depends on it. So that might be the issue. But it’s hard to say without a reproduction.

Not sure why you left it, but I am 100% sure that you you would provide a reproduction (playground or project we can see) your question will be answered much faster.

1 Like