pchen66/panolens.js

Error in panolens.js file

Opened this issue · 3 comments

I faced this error when I use a simple panolens

Uncaught TypeError: Class constructor Wn cannot be invoked without 'new'
at y.n [as constructor] (panolens.min.js:7)
at new y (panolens.min.js:9)

it might be related to your three.js version

Thank you, I'll chek that

It's caused by three.js version not matching with panolens. Go to panolens homepage inspect and you will see scripts, right click on three.js one open "reveal in source panel" copy and paste that three.min.js into yours and it will work