# Uncaught TypeError: Cannot read property 'map' of undefined \[RESOLVED\]

**URL:** <https://discourse.threejs.org/t/uncaught-typeerror-cannot-read-property-map-of-undefined-resolved/3681>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [August 4, 2018, 8:26pm UTC](https://discourse.threejs.org/t/uncaught-typeerror-cannot-read-property-map-of-undefined-resolved/3681 "2018-08-04T20:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveEveritt](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/daveeveritt/32/2504_2.png) [@DaveEveritt](https://discourse.threejs.org/u/DaveEveritt)\
**Post date:** [August 4, 2018, 8:26pm UTC](https://discourse.threejs.org/t/uncaught-typeerror-cannot-read-property-map-of-undefined-resolved/3681/1 "2018-08-04T20:26:12Z")

</div>

My first attempt at showing some .obj models created awhile ago, using three.js. So, a complete and total three.js and WebGL n00b, but with JS experience.

I followed [this tutorial code](https://manu.ninja/webgl-3d-model-viewer-using-three-js/), but updated the libraries to the latest from the thee.js repo.

I’ve already worked through a few errors, but this one is persistent, and the [similar questions I can find on StackOverflow](https://stackoverflow.com/q/20090219/123033) don’t help.

My [repo is here](https://github.com/DaveEveritt/js3d).

---

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [August 4, 2018, 10:52pm UTC](https://discourse.threejs.org/t/uncaught-typeerror-cannot-read-property-map-of-undefined-resolved/3681/2 "2018-08-04T22:52:59Z")

</div>

What happens if you remove these lines?

```auto
materials.materials.default.map.magFilter = THREE.NearestFilter;
    
materials.materials.default.map.minFilter = THREE.LinearFilter;

```

---

<div class="post-metadata">

**Author:** ![DaveEveritt](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/daveeveritt/32/2504_2.png) [@DaveEveritt](https://discourse.threejs.org/u/DaveEveritt)\
**Post date:** [August 5, 2018, 9:01am UTC](https://discourse.threejs.org/t/uncaught-typeerror-cannot-read-property-map-of-undefined-resolved/3681/3 "2018-08-05T09:01:20Z")

</div>

> [@looeee](#):
>
> materials.materials.default.map.magFilter = THREE.NearestFilter; materials.materials.default.map.minFilter = THREE.LinearFilter;

Commented these out, and it works, thanks! Remaining issue is one of scale - I’m right inside the bowl and it’s too big, but I guess that’s something I can tinker with now.
