Getting an type error that says 'Cannot read propery 'ROTATE' of undefined

Hello,

I’m currently working on three.js with OrbitControls.js to make a camera control.
And I realized that an error I had never seen ever before occured since yesterday(or more?).
It seems that THREE.TOUCH.ROTATE is not anymore defined in the latest version of three.js…
Does anyone know how to fix this problem? I don’t know this website is the right place to post, but I’d appreciate if you could help me.

Some screenshots that relates with the error below



And console message

Uncaught TypeError: Cannot read property ‘ROTATE’ of undefined
at new THREE.OrbitControls (OrbitControls.js:82)
at init ((index):565)

and sorry about my horrible grammer.

Duplicate of: Recent change to OrbitControls breaks some projects

1 Like

Chaging a link worked well for me and sorry not to realize the duplicate post.
Thank you very much!:rofl:

1 Like