Latest FBXLoader giving a TypeError on loading a model

FBX Model Version 7400
TEST2.fbx (2.1 MB)
text_alpha text_glow texture

TypeError: child.material.clone is not a function
at Mesh.traverse (
at Group.traverse (
at FBXTreeParser.setupMorphMaterials (
at FBXTreeParser.parseScene (
at FBXTreeParser.parse (
at FBXLoader.parse (
at Object.onLoad (
at XMLHttpRequest. (
at ZoneDelegate.push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)

The model mentioned above gives the above Type Error. This happens only with the latest version of FBXLoader. It works fine with the earlier loader.

Can you also share text_alpha.jpg? In any event, the model seems to load fine with the latest version of FBXLoader (R98):



Now all errors are gone and still the model renders just fine. I think you have to demonstrate the problem with a live example.

You were right, it was working. But when I use it as an NPM module in angular project then this error pops up.

Most three.js related npm modules are not maintain by the core development team. The best thing you can do is to grab the latest version of the loader and transform it into a module by yourself (which is actually not complicated). There might be a better solution in the future though. For now, it’s more reliable to stick to the source files of the official repo.


ok thanks for helping me