-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link to the three example in default template doesn't resolve #180
Comments
Running into this as well, seems related to #149 as three has now switched to esm. Modifying the version of three installed and downgrading it to version |
Running into the same issue (working through the frontendmasters course by Matt). Command:
|
This is fixed in the latest version of the CLI, by using a fixed version of ThreeJS. Not the most ideal solve, but unfortunately it looks like there are some bugs in the ESM parsing, and I don't really want to wade into that rabbit hole. An ideal fix would be to replace the internal browserify bundling with esbuild (which didn't exist a few years ago) but I've been putting it off as it's a big undertaking. To fix, you can do the following in your package that already exists: npm install three@0.147.0 --save To get the latest version of the CLI so that you don't hit this issue on new sketches, install it like this (if you're using it locally or with npm i canvas-sketch-cli@1.11.21 --save-dev If you've been using canvas-sketch-cli globally, this is how you update: npm i canvas-sketch-cli@1.11.21 --global |
Thanks so much Matt. Thanks for creating this and the coursework to guide us on its usage |
I use the recommended command to open a threejs template
npx canvas-sketch-cli --new --template=three --open
But I do get an error
Can't walk dependency graph: Cannot find module 'three/examples/js/controls/OrbitControls' from 'sketches/2023.02.14-21.21.44.js'
I checked the three module it has a jsm folder and not a js folder. Any recommended solution?
The text was updated successfully, but these errors were encountered: