# GLTF2Exporter seem like having some bug

**URL:** <https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853>\
**Category:** Bugs\
**Tags:** gltf2export\
**Created:** [February 2, 2023, 10:38am UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853 "2023-02-02T10:38:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jun\_Wah\_Soh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jun_wah_soh/32/29360_2.png) [@Jun\_Wah\_Soh](https://forum.babylonjs.com/u/Jun_Wah_Soh)\
**Post date:** [February 2, 2023, 10:38am UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/1 "2023-02-02T10:38:35Z")

</div>

Hi, Everyone, seem like I encountering some bug, can I know why if I exported the scene with babylon inspector, no issue.  
url: [BabylonInspector Export Model.glb - Google Drive](https://drive.google.com/file/d/1aQQhTTDM0BZbgb7bpIbDNOxNExHOjGjp/view?usp=sharing)  
but when I export with GLTF2Export, then the whole glb file auto change the mesh to transform node, idk why, U can check the glb file on sandbox babylon  
url: [GLTF2Export Model.glb - Google Drive](https://drive.google.com/file/d/1kKmJAqftd0XeJ2qAY9IPSK9xZnnqtIwL/view?usp=sharing)

code:  
GLTF2Export.GLBAsync(scene, “model”).then((glb) =\> {  
glb.downloadFiles();  
});

package.json  
“@babylonjs/core”: “5.45.0”,  
“@babylonjs/gui”: “5.45.0”,  
“@babylonjs/gui-editor”: “5.45.0”,  
“@babylonjs/inspector”: “5.45.0”,  
“@babylonjs/loaders”: “5.45.0”,  
“@babylonjs/materials”: “5.45.0”,  
“@babylonjs/serializers”: “5.45.0”,  
“babylonjs”: “5.45.0”,  
“babylonjs-hook”: “^0.1.1”,  
“babylonjs-loaders”: “5.45.0”,  
“react-babylonjs”: “^3.1.15”,

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 2, 2023, 7:19pm UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/2 "2023-02-02T19:19:29Z")

</div>

Do you mind reproducing the issue in the playground?

Here is the code used in the inspector: [Babylon.js/toolsTabComponent.tsx at master · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/inspector/src/components/actionTabs/tabs/toolsTabComponent.tsx#L239)

---

<div class="post-metadata">

**Author:** ![Jun\_Wah\_Soh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jun_wah_soh/32/29360_2.png) [@Jun\_Wah\_Soh](https://forum.babylonjs.com/u/Jun_Wah_Soh)\
**Post date:** [February 3, 2023, 6:36am UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/4 "2023-02-03T06:36:03Z")

</div>

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#1GXSPK%23144)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

u can try to download this, seem like also same issue

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [February 3, 2023, 3:56pm UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/5 "2023-02-03T15:56:16Z")

</div>

I’m not seeing anything amiss on the downloaded file of this playground?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 3, 2023, 4:05pm UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/6 "2023-02-03T16:05:10Z")

</div>

Same I tried both from the inspector and within the code with the same exact outcome and expected model.

Could you try cleaning you node modules before retrying ???

I am suspecting a version issue of some sort.

---

<div class="post-metadata">

**Author:** ![Jun\_Wah\_Soh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jun_wah_soh/32/29360_2.png) [@Jun\_Wah\_Soh](https://forum.babylonjs.com/u/Jun_Wah_Soh)\
**Post date:** [February 3, 2023, 4:42pm UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/7 "2023-02-03T16:42:58Z")

</div>

I tried before, I also suspecting a version issue, so I updated all my babylon package into new version, and I clear my node modules too many time, maybe I check again see how

---

<div class="post-metadata">

**Author:** ![Jun\_Wah\_Soh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jun_wah_soh/32/29360_2.png) [@Jun\_Wah\_Soh](https://forum.babylonjs.com/u/Jun_Wah_Soh)\
**Post date:** [February 4, 2023, 4:14pm UTC](https://forum.babylonjs.com/t/gltf2exporter-seem-like-having-some-bug/37853/8 "2023-02-04T16:14:35Z")

</div>

Issue Solved 😮‍💨

because I import { GLTF2Export } from ‘babylonjs-serializers’…  
I no yarn add babylonjs-serialize before, dk why it works…even I clicked GLTF2Export, IDE also redirected me to the node\_modules/@babylonjsxx/serializers

but after I import { GLTF2Export } from ‘@babylonjs/serializers/glTF’; no more issue
