FBX model not working in Three.js

I have a fbx model that works both in Mixamo and in Windows 3D viewer. When I try to load it with FBXLoader I got this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'ID')
    at FBXTreeParser.parseDeformers (FBXLoader.js:739:55)
    at FBXTreeParser.parse (FBXLoader.js:166:26)
    at FBXLoader.parse (FBXLoader.js:143:59)
    at Object.onLoad (FBXLoader.js:91:19)
    at three.module.js:39951:38

Does anyone know how to solve this? Thanks

You should check that line with a break point and inspect what’s undefined, from just a error message we cannot really help you further.

It might be an unrecognized object, or generally just something the loader might not support but it’s just guessing :crystal_ball:

I am not sure am I supposed to add a breakpoint to FBXLoader.js file?

Yeah in devtools on that line the error occurs.