# BasisTextureLoader not working when loaded as a module

**URL:** <https://discourse.threejs.org/t/basistextureloader-not-working-when-loaded-as-a-module/10528>\
**Category:** Questions\
**Tags:** basis, textures\
**Created:** [October 30, 2019, 1:00pm UTC](https://discourse.threejs.org/t/basistextureloader-not-working-when-loaded-as-a-module/10528 "2019-10-30T13:00:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernandojsg](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fernandojsg/32/7859_2.png) [@fernandojsg](https://discourse.threejs.org/u/fernandojsg)\
**Post date:** [October 30, 2019, 1:00pm UTC](https://discourse.threejs.org/t/basistextureloader-not-working-when-loaded-as-a-module/10528/1 "2019-10-30T13:00:41Z")

</div>

Hi everyone!

I’ve been trying to use the BasisTextureLoader importing it as a module and creating a bundle on the application using webpack.  
The example is pretty straightforward based on the current basis example on threejs:

> <https://github.com/fernandojsg/three-basis-modules-example/blob/65d97c3705d5b4a3c511d3d92b6ec33d21717bad/src/index.js>

[https://fernandojsg.github.io/three-basis-modules-example/](https://fernandojsg.github.io/three-basis-modules-example/)

It throws a bunch of errors on chrome and in firefox even if the transcoder code seems to be fetched correctly.

Any idea about what is going on here?

Thanks!

---

<div class="post-metadata">

**Author:** ![fernandojsg](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fernandojsg/32/7859_2.png) [@fernandojsg](https://discourse.threejs.org/u/fernandojsg)\
**Post date:** [October 30, 2019, 6:45pm UTC](https://discourse.threejs.org/t/basistextureloader-not-working-when-loaded-as-a-module/10528/2 "2019-10-30T18:45:05Z")

</div>

Solved! It was a revision mismatch between the module dependency and the transcoder I was using. updating everything to r109 or r110 fixed the problem. Thanks and sorry for the noise!
