three.interaction.js
three.interaction.js copied to clipboard
Uncaught TypeError: class constructors must be invoked with 'new' when using latest verison of threejs
I downloaded the latest three.min.js from https://threejs.org/ and am getting this error.
Uncaught TypeError: class constructors must be invoked with 'new'
InteractionManager http://localhost:3000/js/three.interaction.js:715
Interaction http://localhost:3000/js/three.interaction.js:4470
<anonymous> http://localhost:3000/js/myfile.js:49
[three](http://localhost:3000/js/three.interaction.js)
Did you ever find a solution to this?
Imperfect solution is:
import Interaction from 'three.interaction/src/interaction/Interaction.js'