# Console is printing a vague/incorrect error

**URL:** <https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303>\
**Category:** Libraries\
**Created:** [April 30, 2020, 4:10pm UTC](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303 "2020-04-30T16:10:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PKFire17](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@PKFire17](https://discourse.processing.org/u/PKFire17)\
**Post date:** [April 30, 2020, 4:10pm UTC](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303/1 "2020-04-30T16:10:46Z")

</div>

Hi, I’m trying to make a polyhedron renderer thing but when I try to draw a vertex, it prints out  
`Script error. (: line 0)` and  
`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.` The first error happens whenever i try do draw something to the canvas, and the second error happens no matter what, even on a new sketch. My code looks like this and I am using p5.dimensions,

```auto
var t;
function setup() {
  createCanvas(400, 400, WEBGL);
  t=nVector(1,1,1)
}

function draw() {
  background(255);
  point(t.x,t.y,t.z);
}

```

EDIT: So it turns out that both errors happen whenever I am logged in, which doesn’t make sense.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [May 1, 2020, 6:17am UTC](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303/3 "2020-05-01T06:17:19Z")

</div>

Hi @PKFire17  
Do you want something like?

```auto
var t;

function setup() {
  createCanvas(400, 400, WEBGL);
 t = createVector(1, 1, 1);
}

function draw() {
  background(255);
  point(t.x,t.y,t.z);
}

```
