Thanks, I tried adding the loaders in the Stackblitz, however I get the same error.
I still get RuntimeError: Unable to load from https://raw.githubusercontent.com/CedricGuillemet/dump/master/racoonfamily.spz: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse
You should register the builtin loaders before load the model (preferably in App.tsx):
import { registerBuiltInLoaders } from "@babylonjs/loaders/dynamic";
...
registerBuiltInLoaders();
“This will register all supported loaders, but internally uses dynamic imports to only download/load a specific importer (e.g. glTF, splat, etc.) when a model of that type is first loaded.” Taken from here:
As side note, keep update to the same version both @babylonjs/core and @babylonjs/loaders otherwise you will get compilation errors if you install for the first time the dependencies declared in the existing package-lock.json.