Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')

Hey, so I am exporting object using gltfExporter and when I import it to blender it works fine, but when I try to upload it in three.js viewer it throws error mentioned in the title. what is causing this? here’s the code, also I attached test exported file.

const exportGLB = (scene: any) => {
// Clean the scene before

const exporter = new GLTFExporter()


exporter.parse(
  scene,
  async (gltf: any) => {
  
    gltf.name='test'

    const gltfStr = JSON.stringify(gltf)

    // 3. Convert that string into a blob

jsWyfHwohmMTVYYcvCVi.glb (657.9 KB)

    const gltfBlob = new Blob([gltfStr], { type: "model/gltf-binary" })

    const file = new File([gltfBlob], "scene.glb", {
      type: "model/gltf-binary",
    })

    const form = new FormData()
    form.append("file", file)

    const url = await getUrl(form)

    console.log(url)

    const upload = await uploadAsset(url)

    console.log(upload,'testt')




  },
  (error) => {
    console.log(error)
  },
  { binary: false }
)

}