# Error Message on console "createElement"

**URL:** <https://discourse.processing.org/t/error-message-on-console-createelement/19765>\
**Category:** p5.js\
**Created:** [April 14, 2020, 6:54am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765 "2020-04-14T06:54:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mem](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mem](https://discourse.processing.org/u/Mem)\
**Post date:** [April 14, 2020, 6:54am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/1 "2020-04-14T06:54:56Z")

</div>

Hello,  
Any code that I try will give me this console message, (working with chrome)  
Some code works others not, that’s a very recent issue.  
There is no createElement on any of my code

“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.”

Thanks

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 18, 2020, 6:42pm UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/2 "2020-04-18T18:42:22Z")

</div>

It sounds frustrating – thanks for bringing your question to the forum. However, we can’t give good feedback if you don’t share code. “Some code works others not” could be literally anything. From the error, it sounds like you might have a bad line of code where you try to define createElement() as new function rather than calling in.

Can you create an example of a broken sketch on [editor.p5js.org](http://editor.p5js.org)?

---

<div class="post-metadata">

**Author:** ![Mem](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mem](https://discourse.processing.org/u/Mem)\
**Post date:** [April 20, 2020, 8:06am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/3 "2020-04-20T08:06:57Z")

</div>

It’s was too big

 ![image0.jpeg](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/85b325eab81e25553181022bf107acbecaee04ec.jpeg)

(Attachment Vidéo.mov is missing)

---

<div class="post-metadata">

**Author:** ![Mem](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mem](https://discourse.processing.org/u/Mem)\
**Post date:** [April 20, 2020, 8:11am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/4 "2020-04-20T08:11:51Z")

</div>

Only gif here we go

![image0.gif](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/97adb0c49616682f76e9c908f96072c17eb8106e.gif)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 20, 2020, 9:15am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/5 "2020-04-20T09:15:34Z")

</div>

The web editor has a share button. Just share a link to your web sketch, or cut-paste the url.

---

<div class="post-metadata">

**Author:** ![Mem](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mem](https://discourse.processing.org/u/Mem)\
**Post date:** [April 20, 2020, 11:25am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/6 "2020-04-20T11:25:12Z")

</div>

[https://editor.p5js.org/Kiku70/sketches/vH\_wiXcOT](https://editor.p5js.org/Kiku70/sketches/vH_wiXcOT)

https://editor.p5js.org/Kiku70/sketches/vH_wiXcOT

---

<div class="post-metadata">

**Author:** ![Mem](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mem](https://discourse.processing.org/u/Mem)\
**Post date:** [April 20, 2020, 11:32am UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/7 "2020-04-20T11:32:54Z")

</div>

Something strange,

It’s works with safari, still not on Chrome

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 20, 2020, 8:17pm UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765/8 "2020-04-20T20:17:16Z")

</div>

I am able to view your sketch just fine with Chrome (Version 80.0.3987.163 (Official Build) (64-bit)).

It works on the web editor site, and also on an embed here.

This suggests that you have a cache issue (try an incognito window) or a plugin/extension, or security settings. If you try Chrome on a different device it will probably work for you.
