ykob / sketch-threejs

Interactive sketches made with three.js.
https://ykob.github.io/sketch-threejs/
MIT License
2.33k stars 303 forks source link

Distort sketch error #25

Closed pi43r closed 3 years ago

pi43r commented 3 years ago

Hey :)

The distort sketch errors with:


    r https://ykob.github.io/sketch-threejs/js/main.min.js:2
    a https://ykob.github.io/sketch-threejs/js/main.min.js:2
    <anonymous> https://ykob.github.io/sketch-threejs/js/main.min.js:2
    <anonymous> https://ykob.github.io/sketch-threejs/js/main.min.js:2
    <anonymous> https://ykob.github.io/sketch-threejs/js/main.min.js:2```
de-minified line:  `main.min.js:2:19392`

Thought I would let you know as it seems that you updated the code recently.

Thanks for the great examples!
ykob commented 3 years ago

@pi43r Thank you for your bug report. I could confirm it, and I have fixed it immediately. https://ykob.github.io/sketch-threejs/sketch/distort.html

The cause was that the way to import JS modules is old.