p5.accessibility icon indicating copy to clipboard operation
p5.accessibility copied to clipboard

p5.js' web editor gives the "createElement()" error when the default template is run and the sound option is checked in the settings

Open Angshu31 opened this issue 4 years ago • 0 comments

Nature of issue?

  • [x] Found a bug
  • [ ] Existing feature enhancement
  • [ ] New feature request

Details about the bug:

The error in the console: p5 had problems creating the global function "createElement", possibly because your code is already using that name as a variable. You may want to rename your variable to something else. As mentioned in this issue, the cause is most likely that on line 724 of p5.accessibility.js, a global createElement function is created. This is conflicting with the global function that p5.js created.

  • Web browser and version: Chrome 80.0.3987.149
  • Operating System: Windows 10
  • Steps to reproduce this:

Go to the p5.js web editor. Check the box in Settings -> Accessibility -> Accessible text-based canvas -> Sound . Run the sketch without editing the default code.

Angshu31 avatar Dec 21 '20 17:12 Angshu31