Skip to content

problem creating global function 'createElement' #6097

@awdriggs

Description

@awdriggs

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

p5.js version

1.6.0

Web browser and version

Chrome Version 111.0.5563.146 (Official Build) (x86_64)

Operating System

MacOSX 12.5.1

Steps to reproduce this

Steps:

  1. Open a new editor
  2. Write any p5 function ellipse(20, 20, 20, 20);
  3. Press Play

I get this error...

p5.js says: 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. (http://p5js.org/reference/#/p5/createElement) 

Mostly the sketch will still work, but if I use p5.play I don't even get a canvas.

Strajngely, if open any sketches or create a new sketch on the same computer, same browser, but with a different p5 account I don't get the error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions