mattdesl / canvas-sketch

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

Cannot find module 'e:\Projects\Web\genart\first\e' from '_fake.js' required by e:\Projects\Web\genart\first\_fake.js #112

Closed mblandr closed 2 years ago

mblandr commented 3 years ago

After installing canvas-sketch-cli trying to canvas-sketch sketch.js --new --open I got this error. node 12.18.1, but with 14.3.0 it's the same Error

yuvalShalgi227 commented 2 years ago

Hello, any input on this error where is the dependecy that is looking fro this file _fake.js ?

Forpee commented 2 years ago

Need help also

msup commented 2 years ago

Same problem here.

Running on W10, tried Node v12, latest version and the v14.16.1

Importing the canvas-sketch.js from "https://unpkg.com/canvas-sketch@latest/dist/canvas-sketch.umd.js" works.

Thank you for any idea.

image

stevemk42 commented 2 years ago

Hello @msup .. Sorry Im kind of new here.. please can you list steps about how you did this ? Thanks in advance

stevemk42 commented 2 years ago

Ok @msup .. I finally made it work out for me too. thanks. (I was still using "require" ahead.. don't know why, but I finally figured it out) Only remaining problem now is to work with the util (canvas-sketch-util) library.. since I need random from it. And The one from unpkg looks short, and with no random object into it..

Any help, anyone, please ? thanks in advance

mattdesl commented 2 years ago

I think this might be fixed in latest version. Please update and comment if you see it again.

If you are having trouble with installation, see this comment.

To update:

If you've previously installed the CLI tool globally:

npm install canvas-sketch-cli@latest --global

Or locally:

npm install canvas-sketch-cli@latest --save-dev

Let me know if any issues persist.

tammytwolegs commented 2 months ago

I have the same issue, neither of these work:

Globally: npm install canvas-sketch-cli@latest --global

Or locally:

npm install canvas-sketch-cli@latest --save-dev

I keep getting this error

Screenshot 2024-06-19 at 14 14 07