mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
5.02k stars 393 forks source link

Error with threejs OrbitControls and canvas-sketch --template=three #177

Closed blumaa closed 1 year ago

blumaa commented 1 year ago

Hi! I am doing the front end masters course on creative coding. I'm on the 3d module and I tried to run the npx canvas-sketch webgl.js --new --template=three in my terminal. Then I get this error: Can't walk dependency graph: Cannot find module 'three/examples/js/controls/OrbitControls' from 'webgl.js'.

Any recommendations on how to import the OrbitControls properly while using canvas-sketch?