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

p5.js version 1.7.0 "reading '__clearCanvas'" error #249

Open
romellogoodman opened this issue Aug 16, 2023 · 7 comments
Open

p5.js version 1.7.0 "reading '__clearCanvas'" error #249

romellogoodman opened this issue Aug 16, 2023 · 7 comments

Comments

@romellogoodman
Copy link

I am getting an error using the library with version 1.7.0 of p5.js.

TypeError: Cannot read properties of undefined (reading '__clearCanvas')

I created a sketch here for recreation purposes: https://editor.p5js.org/romellogoodman/sketches/pPa91TFuP. Assuming this might have something to do with the latest release of the library.

@xanderjl
Copy link

Came to report the same bug. Reverting p5 to 1.6.x fixed this for me while we wait for a fix

@n-926
Copy link

n-926 commented Aug 29, 2023

i think its my problem too i dont think im doing anything wrong whats the full different script i tried changing the 1.7.0s to 1.6.xs new to p5 obviously.

@xanderjl
Copy link

whats the full different script

I'm not totally following your ask here. While my implementation is fairly involved, the relevant piece happens here. Package versions are here

@n-926
Copy link

n-926 commented Sep 4, 2023

I opened an issue asking for an example to my code and what i would add to the html and code in order to export my sketch as a svg so i can use that example for the others maybe you could check it out if get a chance? thank you anyways

@oskay
Copy link

oskay commented Sep 4, 2023

Reverting to 1.6 worked for me, as did this fix: #172 (comment)

@n-926
Copy link

n-926 commented Sep 4, 2023 via email

@n-926
Copy link

n-926 commented Sep 4, 2023 via email

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

4 participants