ES6/NPM example not working

Hi there,

after successful working with babylon.js, I was trying out the NPM support today.

I replicated this basic example without changes:

I can build and run it,
but I get this error:

I am using Edge 111.

Welcome aboard!

cc @sebavan as I was not able to make webpack serve the index.html file (“404 not found”), so I could not reproduce your problem.

Hello and welcome! trackUbos is part of this file Babylon.js/engineFeatures.ts at master · BabylonJS/Babylon.js (github.com), if you import it in your project, does it solve the error?

This could happen if you do not pass a canvas or context to the engine constructor :slight_smile: like having the wrong id or similar issue.

2 Likes