@Babylonjs/core SceneLoader Problem

Good Afternoon everyone,
I am trying to import a pre-made mesh using ReactJS and @babylonjs/core, in the playground the SceneLoader.Append/ImportMesh works perfectly, however on my React Project I get this error in the develeper tools’ console:
“Uncaught (in promise) TypeError: babylonjs_core__WEBPACK_IMPORTED_MODULE_1_.SceneLoader.AppendAsync is not a constructor”
Is it possible to import meshes using @babylonjs/core or should I use another library ?

Here’s my code in my .js file:

Hey @Jad,

Looks like the answer is in the error message that you’ve pasted.
The AppendAsync is not the constructor so try to remove the new keyword before it.

3 Likes

This fixed the issue thank you ! :raised_hands:

2 Likes