After setting up all the necessary dependencies using npm and bower for a project on a different laptop, I encountered an error when trying to run it locally. The error message reads:
Uncaught TypeError: Cannot redefine property: rotation
at (line 7542 in non minified three.js r67):
THREE.Object3D = function () {
this.id = THREE.Object3DIdCount ++;
this.uuid = THREE.Math.generateUUID();
this.name = '';
this.parent = undefined;
this.children = [];
this.up = new THREE.Vector3( 0, 1, 0 );
this.position = new THREE.Vector3();
var scope = this;
Object.defineProperties( this, {
rotation: {
enumerable: true,
value: new THREE.Euler().onChange( function () {
scope.quaternion.setFromEuler( scope.rotation, false );
} )
}, [...]
It seems to be an issue within the three.js library and it is causing the entire application to break. I'm not sure what's causing it and I'm curious if anyone else has encountered this problem before?