# Use FBXLoader of three.module.js

**URL:** https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554
**Category:** Questions
**Tags:** loaders
**Created:** [March 14, 2019, 10:52am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554 "2019-03-14T10:52:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jeckl](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jeckl/32/4548_2.png) [@Jeckl](https://discourse.threejs.org/u/Jeckl)
#### Post date: [March 14, 2019, 10:52am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/1 "2019-03-14T10:52:42Z")

</div>

Hi, I’m Korean Developer!

I am using “three.module.js” to use the grammar ‘es6’.

Problem is, I want to use the FBXLoader, but I don’t know how to use it.

In an HTML file

 I don't want to add this. Is there any way you can use it only by import? I am Korean, and I am using a translator, so the translation may be unstable. Please understand.

---

<div class="post-metadata">

### Author: ![MateuszWis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mateuszwis/32/38322_2.png) [@MateuszWis](https://discourse.threejs.org/u/MateuszWis)
#### Post date: [March 14, 2019, 11:10am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/3 "2019-03-14T11:10:16Z")

</div>

[FBXLoader.zip](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/e/e71e654235e5834b7b00f6c9c596eee00a29a409.zip) (29.2 KB)

Its a bit old, but you can probably change the recent FBXLoader the same way i changed this one.

You’ll have to change  
`import * as THREE from 'three';` to `import * as THREE from './three.module';`  
in all .js files

---

<div class="post-metadata">

### Author: ![Jeckl](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jeckl/32/4548_2.png) [@Jeckl](https://discourse.threejs.org/u/Jeckl)
#### Post date: [March 14, 2019, 11:21am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/4 "2019-03-14T11:21:58Z")

</div>

I tried to use the following methods. An error is generated.

import \* as THREE from “path/three.module.js”;  
import FBXLoad from “path/FBXLoader.js”

---

<div class="post-metadata">

### Author: ![MateuszWis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mateuszwis/32/38322_2.png) [@MateuszWis](https://discourse.threejs.org/u/MateuszWis)
#### Post date: [March 14, 2019, 11:33am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/5 "2019-03-14T11:33:49Z")

</div>

Can you write the error message?

---

<div class="post-metadata">

### Author: ![Jeckl](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jeckl/32/4548_2.png) [@Jeckl](https://discourse.threejs.org/u/Jeckl)
#### Post date: [March 15, 2019, 2:57am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/6 "2019-03-15T02:57:02Z")

</div>

First of all, thank you very much!

It’s a little settled.

But, The following error is encountered.

`THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js`

So I downloaded the ‘inflate.min.js’ and added the line below.  
Import {Zlib} from ‘/inflate.min.js’.

But Problem is  
SyntaxError: requested module ‘./inflate.min.js’ does not provide an export named ‘Zlib’.  
There’s an error like this! What should I do?

---

<div class="post-metadata">

### Author: ![MateuszWis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mateuszwis/32/38322_2.png) [@MateuszWis](https://discourse.threejs.org/u/MateuszWis)
#### Post date: [March 15, 2019, 6:10am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/7 "2019-03-15T06:10:28Z")

</div>

I forgot about that, I was including inflate.min.js inside my index.html  
`<script src="js/inflate.min.js"></script>`  
I have no idea how to import it directly inside FBXLoader 😓

Edit:  
I found [pako\_inflate](https://github.com/nodeca/pako/blob/master/dist/pako_inflate.js) which is a module,  
I can’t test it at the moment but i think it would be something like:

```
 import * as Zlib from "./pako_inflate"
```

---

<div class="post-metadata">

### Author: ![Jeckl](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jeckl/32/4548_2.png) [@Jeckl](https://discourse.threejs.org/u/Jeckl)
#### Post date: [April 3, 2019, 3:44am UTC](https://discourse.threejs.org/t/use-fbxloader-of-three-module-js/6554/8 "2019-04-03T03:44:50Z")

</div>

Thanks you!!  
I was forced to add a line to the HTML file, but it was fixed thanks to you.  
really Thanks you!!
