# Can't Load GLB model as draco\_decoder.wasm and draco\_wasm\_wrapper.js not found

**URL:** <https://discourse.threejs.org/t/cant-load-glb-model-as-draco-decoder-wasm-and-draco-wasm-wrapper-js-not-found/27832>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [July 7, 2021, 5:29am UTC](https://discourse.threejs.org/t/cant-load-glb-model-as-draco-decoder-wasm-and-draco-wasm-wrapper-js-not-found/27832 "2021-07-07T05:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IsaacKam](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/isaackam/32/19325_2.png) [@IsaacKam](https://discourse.threejs.org/u/IsaacKam)\
**Post date:** [July 7, 2021, 5:29am UTC](https://discourse.threejs.org/t/cant-load-glb-model-as-draco-decoder-wasm-and-draco-wasm-wrapper-js-not-found/27832/1 "2021-07-07T05:29:12Z")

</div>

Hi all, trying to load a GLB model using the follow code:

```javascript
` const { OrbitControls } = require("three/examples/jsm/controls/OrbitControls"); // eslint-disable-line global-require
    const { GLTFLoader } = require("three/examples/jsm/loaders/GLTFLoader"); // eslint-disable-line global-require
    const { DRACOLoader } = require("three/examples/jsm/loaders/DRACOLoader"); // eslint-disable-line global-require

const gltfLoader = new GLTFLoader();
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( '/examples/js/libs/draco/' );
gltfLoader.setDRACOLoader( dracoLoader );

const scene = new THREE.Scene();
scene.background = new THREE.Color( 0x222222 );

{
  gltfLoader.load('skull.glb', gltf => {
    const root = gltf.scene;
    scene.add(root);
  });
}

```

`  
The model doesn’t load and I’m getting hit with the following errors:

[http://localhost:3000/three/examples/js/libs/draco/gltf/draco\_decoder.wasm](http://localhost:3000/three/examples/js/libs/draco/gltf/draco_decoder.wasm) 404 (Not Found)  
[http://localhost:3000/three/examples/js/libs/draco/gltf/draco\_wasm\_wrapper.js](http://localhost:3000/three/examples/js/libs/draco/gltf/draco_wasm_wrapper.js) 404 (Not Found)

I’m using Next.js and have tried to change the decoder path to ‘/draco/gltf/’ and ‘three/examples/js/libs/draco/gltf/’ with no success

I have tried the code with other models and it works correctly. I have also tried the model itself on gltf three.js viewers and it also works.

Would love your help to fix this bug!

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [July 7, 2021, 4:48pm UTC](https://discourse.threejs.org/t/cant-load-glb-model-as-draco-decoder-wasm-and-draco-wasm-wrapper-js-not-found/27832/2 "2021-07-07T16:48:13Z")

</div>

You may need to share the build tool configuration you’re using here as well — some, like Parcel, will require more setup to load static files (see [parcel-plugin-static-files-copy - npm](https://www.npmjs.com/package/parcel-plugin-static-files-copy)).
