Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

Can not read property of 'undefined' #6

Open
jean-noelp opened this issue Jan 19, 2018 · 0 comments
Open

Can not read property of 'undefined' #6

jean-noelp opened this issue Jan 19, 2018 · 0 comments

Comments

@jean-noelp
Copy link

I'm trying to use this module with the code below :

import THREE from 'three'; import GLTF2Loader from 'three-gltf2-loader'; GLTF2Loader(THREE); console.log(typeof THREE.GLTF2Loader);

But I have the error 'Can not read property of undefined', referencing the 'THREE'. However I'm using some elements of THREE which works.
And even if I remove the '2', the error still remains.

Another clue : webpack is displaying warning :
"export 'default' (imported as 'THREE') was not found in 'three'

For you, is it a THREE error, or a GLTF2Loader error ?...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant