Using GLTF Loader on the Server with Node

Hi Michael,

Usually loaders are available via the main SceneLoader module. However it looks like your code cannot access those modules for some reason :thinking:

One solution that might work:

import { IspluginForExtensionAvailable, /*etc*/ } from "@babylonjs/loaders/glTF";

IsPluginForExtensionAvailable(".glb") //hopefully true?

Or

import {IspluginForExtensionAvailable} from  "babylonj-s-loaders/glTF"

I think the problem is that you need to get the loaders from the object’s specific subdirectory, like obj or glTF.

The import you use may also depend on whether you need an ES6 ready package?

I hope this is a suitable fix :crossed_fingers: