React JS - 'BABYLON' is not defined

you are mixing import (importing from babylon) and using the namespace (BABYLON.) and here you only want to rely on import.

You should basically not have any BABYLON. in the code and only use the objects you imported.

2 Likes