我的 p5.js 绘图应用程序可能无法在 chrome 上运行,但它在所有其他浏览器中运行良好

问题描述 投票:0回答:0

我的 P5.js 绘图应用程序以前在 Chrome 中可以正常工作,但现在我根本无法使用边栏中的任何工具。我已经将我的 p5.min 库更新到最新版本,但问题仍然存在。

我的代码中也出现了这个未捕获的类型错误,当我实时运行它时,它不会出现在任何其他浏览器中。 这是它的截图:

screen shot of running sketch with error in the console

screen shot including the line of code with the error

这个绘图应用程序模板是一个旧的 p5.js 模板,所以我做的第一件事就是更新库,但没有任何改变,我还仔细检查了代码中的错误并重写了整个部分。

javascript p5.js
© www.soinside.com 2019 - 2024. All rights reserved.