-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
window.p5._report is not defined #2327
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
Comments
@davepagurek said that the error was caused by my script tags being at the end of the If I'm not mistaken though, it's pretty typical to add script tags at the end of the |
Interesting! That Here's where we add it to the p5.js-web-editor/client/modules/Preview/EmbedFrame.jsx Lines 250 to 255 in 59326e8
|
Hey @lindapaiste, I solved this issue locally. I'm going to open a PR for this 🧑💻 |
p5.js version
v1.7.0
What is your operating system?
Mac OS
Web browser and version
114.0.5735.198 (Official Build) (arm64)
Actual Behavior
Only when using the p5.js web editor I get an error saying _report is not defined at undefined.
It's on line 105 of previewEntry.js
It seems window.p5 doesn't exist at that point.
Expected Behavior
No errors.
Steps to reproduce
Press play to see the error show up in the console:
https://editor.p5js.org/quinton-ashley/sketches/B9bcs2HOK
Working example with no errors:
https://editor.p5js.org/quinton-ashley/sketches/aRSwZGkfg
The text was updated successfully, but these errors were encountered: