# Can't load 3d model with GLFTLoader()

**URL:** <https://discourse.threejs.org/t/cant-load-3d-model-with-glftloader/32641>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [December 13, 2021, 4:43pm UTC](https://discourse.threejs.org/t/cant-load-3d-model-with-glftloader/32641 "2021-12-13T16:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prepuk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prepuk/32/22809_2.png) [@prepuk](https://discourse.threejs.org/u/prepuk)\
**Post date:** [December 13, 2021, 4:43pm UTC](https://discourse.threejs.org/t/cant-load-3d-model-with-glftloader/32641/1 "2021-12-13T16:43:57Z")

</div>

Hello! I’m trying to load a .gltf file with the GLTFLoader() function. But when I run the code it dosen’t work I just get the error message that the function couldn’t found the file… Have someone else had this problem with GLTFLoader, how did you solve this problem???

```javascript
const loader = new GLTFLoader();

loader.load( 'assets/scene.gltf', function ( gltf ) {

    const model = gltf.scene;
    scene.add( model );

}, undefined, function ( e ) {

    console.error( e );

});

```

![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/c/9/c9f5a8d3d9e00b4d6bdac796d4ff83bd672313a2.png)

---

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [December 13, 2021, 5:06pm UTC](https://discourse.threejs.org/t/cant-load-3d-model-with-glftloader/32641/2 "2021-12-13T17:06:36Z")

</div>

Maybe the examples helps

From the [Collection of examples from discourse.threejs.org](https://discourse.threejs.org/t/collection-of-examples-from-discourse-threejs-org/4315)

[BeginnerExample](https://hofk.de/main/discourse.threejs/BeginnerExample/BeginnerExample.html) step 3  
[LoadGLTFmove](https://hofk.de/main/discourse.threejs/2020/LoadGLTF/LoadGLTF.html)

---

<div class="post-metadata">

**Author:** ![Lighty](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lighty/32/43283_2.png) [@Lighty](https://discourse.threejs.org/u/Lighty)\
**Post date:** [December 13, 2021, 5:36pm UTC](https://discourse.threejs.org/t/cant-load-3d-model-with-glftloader/32641/3 "2021-12-13T17:36:33Z")

</div>

> [@prepuk](#):
>
> couldn’t found the file

Path to file is wrong
