# P5.js Editor wrong p5.js says: p5 had problems creating the global function "createElement"

**URL:** <https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596>\
**Category:** p5.js\
**Tags:** homework\
**Created:** [April 4, 2023, 5:41am UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596 "2023-04-04T05:41:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zwaan](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@Zwaan](https://discourse.processing.org/u/Zwaan)\
**Post date:** [April 4, 2023, 5:41am UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596/1 "2023-04-04T05:41:27Z")

</div>

Hello, I have problem with P5.js Editor all the time. error message. there is not right. I get caught. Chrome and Edge same error message. "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/](http://p5js.org/) reference/#/p5/createElement) "  
How do I fix this? rather 1.5 weeks prefect. now suddenly. I can’t continue playing program code because fixed error. I like to play fun, demo, test. otherwise i’m boring. really bummed. how solution? who knows can help me? i have already reinstalled edge/chrome still the same. see picture. please help me! Regards Marco

 ![p5_3](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/d/8d8659721f256d96e6ec53300a939a70129da3ef.jpeg)

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [April 6, 2023, 9:07am UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596/2 "2023-04-06T09:07:04Z")

</div>

Hi @Zwaan,

What is the exact code you are running?

Are you using the latest [https://editor.p5js.org/](https://editor.p5js.org/) ? (it works fine for me)

---

<div class="post-metadata">

**Author:** ![oscaraccorsi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/oscaraccorsi/32/18251_2.png) [@oscaraccorsi](https://discourse.processing.org/u/oscaraccorsi)\
**Post date:** [April 11, 2023, 9:14am UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596/3 "2023-04-11T09:14:32Z")

</div>

Hi,  
same issue! Slower than before and sometimes give me a script error…never happened before!  
What’s going on?  
Thanks  
Bye

---

<div class="post-metadata">

**Author:** ![Zwaan](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@Zwaan](https://discourse.processing.org/u/Zwaan)\
**Post date:** [April 11, 2023, 5:35pm UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596/4 "2023-04-11T17:35:25Z")

</div>

Hallo, ik heb ontdekt dat die storing p5.js-account. Zit veel de p5.js-bestanden in. En ik heb apart een nieuwe aaccount aangemaakt. Het werkt prefect. Alleen andere mijn account gmail. Werkt niet. Iets fout in inloggen account, kan niet anders doen.

---

<div class="post-metadata">

**Author:** ![oscaraccorsi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/oscaraccorsi/32/18251_2.png) [@oscaraccorsi](https://discourse.processing.org/u/oscaraccorsi)\
**Post date:** [April 13, 2023, 8:02am UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596/5 "2023-04-13T08:02:52Z")

</div>

I tried but…not working…

---

<div class="post-metadata">

**Author:** ![oscaraccorsi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/oscaraccorsi/32/18251_2.png) [@oscaraccorsi](https://discourse.processing.org/u/oscaraccorsi)\
**Post date:** [April 13, 2023, 8:05am UTC](https://discourse.processing.org/t/p5-js-editor-wrong-p5-js-says-p5-had-problems-creating-the-global-function-createelement/41596/6 "2023-04-13T08:05:44Z")

</div>

Also, I have to say that I tried one of my sketches on Visual Studio Code and everything is fine…  
so, the problem is in the online editor…am I wrong?!
