-
Notifications
You must be signed in to change notification settings - Fork 23
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
Why the code can be run as local file normally about in June, but now cannot #177
Comments
always prompt: SyntaxError: Unexpected token '?', and Unhandled Promise Rejection: ReferenceError: Can't find variable: ml5 |
if change the version of ml5.js to v0.12.2, then these is no any error prompt, but also no any result~ |
Hi @Chen-Yongdong! Thanks for submitting this issue, you should be able to still call ml5.js remotely and outside of the p5.js online editor. Can you try replacing the ml5.js script version to the following in your |
Also I see you said that you already changed the version to v.0.12.2, so you might have already tried this but will link to this issue related to errors with ml5.js code |
So, perhaps there are some issues with the latest ML5 update this time. Even older versions of ml5 may have encountered unsuccessful remote access issues due to certain settings changes |
Hi @Chen-Yongdong, thank you for submitting this issue! The update should not have affected the older version of ml5 (v.0.12.2 or below). Do you mind sharing the problematic code in your You could also download the
Then, add One thing to note is both new and old versions of the ml5.js library would internally fetch model files from remote websites such as kaggle.com. If those sites are restricted, the next option is to connect to a VPN service before accessing ml5. I am currently working on a downloadable, fully offline version of ml5.js. I will keep you updated! |
I try your way, but the error prompts appear, one is Failed to load resource: favicon.ico, another is Failed to load resource: ml5.min.js.map |
I create a null ml5.min.js.map, the error prompt disappeared, but the program did not show the expected response |
Hi @Chen-Yongdong, sorry for the late reply.
These files are not needed for ml5.js to work. The Here is a When running
Perhaps the error is due to one or more of these sites being restricted. |
Yes, https://storage.googleapis.com/ cannot be visited |
The old version ml5 needn't visit these websites. But, why the program cannot be run normally even if change the version of ml5.js to 0.12.2 or 0.6.1? |
Additionally, sometimes there may be occasional reactions, but why is the program's response speed much slower than previous versions? |
Thanks a lot, I can run it |
I don't use the p5.js online editor because of some network access restrictions.
Instead, I opened index.html directly on my Macbook and called the sketch.js file.
A month or two ago, before ML5 was updated, I could use the above method to remotely call ml5.js, but now it doesn't work and there's no response.
I tried calling ml5.js remotely in Codepen, but it didn't work too. Can only using p5.js online editor call ml5.js?
The text was updated successfully, but these errors were encountered: