GLTF serializer broken

This bug is related to the DOMString type error (I think). Just last week I tried to get my app saving GLTF files so I installed the GLTF serilizer, and suddenly everything broke with a bunch of bugs. I uninstalled it, but things were still broken. It seems the update had updated babylonjs/core which had just been updated on NPM and it seemed to have a problem with a missing type ‘DOMString’ (see the other topic for the details and a temp fix).

So I got the core working again, but then I installed the GLTF serializer again and it failed with the error below.

[ng] Error: node_modules/@babylonjs/serializers/glTF/2.0/glTFSerializer.d.ts:3:32 - error TS2307: Cannot find module ‘@babylonjs/core/Animations.js’ or its corresponding type declarations.
[ng] 3 import type { Animation } from “@babylonjs/core/Animations.js”;
[ng] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

this seems to be a problem inside the serializer, so I am lost…

Hello! Can you share a repro of your project so we can see the imports?

This will fix it fix import path by sebavan · Pull Request #13735 · BabylonJS/Babylon.js · GitHub

1 Like

With the latest update on NPM everything now works as expected! Thanks so much guys…

1 Like