Skip to content
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

Live reloading not working properly #194

Open
urnotnagy opened this issue Oct 3, 2023 · 2 comments
Open

Live reloading not working properly #194

urnotnagy opened this issue Oct 3, 2023 · 2 comments

Comments

@urnotnagy
Copy link

urnotnagy commented Oct 3, 2023

using wsl2 on windows 10 after creating or running any sketch, the live view only renders once, then doesn't care for editing the sketch again for some reason.

image

image
this was edited after the sketch was ran

image
here it doesnt change even after refreshing/restarting the browser

I tried:

  • reinstalling
  • using canvas-sketch-cli
  • running with hot reload feature
  • making and running a new sketch on command line with canvas-sketch sketch.js --new --open
  • changing the output folder when running as in canvas-sketch sketch-01.js --output=media/
@julienrondeau
Copy link

I think you should try this in your working directory :

canvas-sketch sketch-01 --output=medias/

this would create a directory named medias where canvas-sketch will be able to export your working file as .png

hope this help

@MrAmii
Copy link

MrAmii commented Jan 31, 2025

This happened to me, but I solved the issue. You can't run canvas-sketch and have LiveReload if you are using wsl. You have to use a true bash terminal. Luckily, I had one already set up in VSCode so I didn't have to change how I was doing things too much, though I did lose 24 hours and a good night's sleep trying to figure this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants