-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Javascript error in running this sketch #3268
Comments
Thanks for raising this @jht9629-nyu, will look into it! |
Looking into it, I think the error was triggered by lines 4 and 6 in the |
I'm seeing an additional error which may or may not be related
We should look into where that is coming from, and if we are loading files properly. |
The core error is that I looked in dev tools at the document that is being loaded (it is something like blob:https://preview.p5js.org/32ddd651-7acb-42cf-b2a6-0b3d822c449f but those numbers change each time)
I can see that the scripts are loaded in the wrong order. Our Now I need to amend my previous statement "where we should be loading p5" because really it's "where we expect the user's sketch to be loading p5". As that is something not fully in our control, I think that the changes you were making towards allowing But additionally, and more importantly, we need to be injecting the |
Thanks so much for consolidating these!!! I mentioned this in the PR comments, but also adding here that I'm thinking we could push out the change where |
Javascript error in running this sketch processing#3268. github - Harshit-7373
Hi , I created a pull request to resolve this issue effectively. Please review and provide feedback. |
p5.js version
Web Editor: v2.12.9 , p5.js: v1.9.2
What is your operating system?
Mac OS
Web browser and version
Version 124.0.6367.62 (Official Build) (arm64)
Actual Behavior
Run this sketch
https://editor.p5js.org/sairamved/sketches/kHR1qrQC5
Get this error
const { _report } = window.p5;
TypeError: Cannot read properties of undefined (reading '_report')
at undefined:2:36978
Expected Behavior
No error
Steps to reproduce
Steps:
open editor
https://editor.p5js.org/sairamved/sketches/kHR1qrQC5
run
Snippet:
// Paste your code here :)
The text was updated successfully, but these errors were encountered: