Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: THREE.WebGLRenderer is not a constructor #3683

Closed
thekonz opened this issue Jul 26, 2013 · 9 comments
Closed

TypeError: THREE.WebGLRenderer is not a constructor #3683

thekonz opened this issue Jul 26, 2013 · 9 comments
Labels

Comments

@thekonz
Copy link

thekonz commented Jul 26, 2013

var renderer = new THREE.WebGLRenderer();

this returns the error

TypeError: THREE.WebGLRenderer is not a constructor

i tried an older version and it worked just fine, so the problem is in the current version.

@mrdoob
Copy link
Owner

mrdoob commented Jul 26, 2013

If that was the case, none of the examples here would work.

@thekonz
Copy link
Author

thekonz commented Jul 26, 2013

i am officially stupid.
what i did was: i included src/Three.js
what i should've done was: include build/three.min.js

there are times as a dev, where you just have to use brain.exe

@thekonz thekonz closed this as completed Jul 26, 2013
@DavidSouther
Copy link

No worries, @thekonz, we've all been there!

@t-oster
Copy link

t-oster commented Mar 29, 2016

I may be stupid, too, but I get the very same error.
It was working with r67, I just downloaded r75 from http://threejs.org/build/three.min.js and included it.
I did not change anything else in my code.
new THREE.UVMapping() fails with THREE.UVMapping is not a constructor

If I console.log(THREE.UVMapping), I get 300 as result. What am I doing wrong?

@mrdoob
Copy link
Owner

mrdoob commented Mar 29, 2016

THREE.UVMapping is no longer a function.

@t-oster
Copy link

t-oster commented Mar 29, 2016

..so I guess the API changed a bit since r67, so I will have to update my applications. Thanks for the hint.

@mrdoob
Copy link
Owner

mrdoob commented Mar 29, 2016

This should help https://github.com/mrdoob/three.js/wiki/Migration.

@lahiru1991
Copy link

Hi,
Im having same problem here i use r83 of three.js. but i download some example from internet its working fine. problem is when that example add to my project without change anything. its gave this error message and do not load any images. i use this lib for 360 view.

thanks.

@Carrin-Hjr

This comment has been minimized.

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

No branches or pull requests

6 participants