three.interaction.js icon indicating copy to clipboard operation
three.interaction.js copied to clipboard

Uncaught TypeError: class constructors must be invoked with 'new' when using latest verison of threejs

Open ugreg opened this issue 2 years ago • 2 comments

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)

ugreg avatar May 09 '22 23:05 ugreg

Did you ever find a solution to this?

ianwatts22 avatar Aug 17 '22 06:08 ianwatts22

Imperfect solution is:

import Interaction from 'three.interaction/src/interaction/Interaction.js'

disarticulate avatar Mar 18 '23 13:03 disarticulate