# Uncaught ReferenceError: createInput is not defined

**URL:** <https://discourse.processing.org/t/uncaught-referenceerror-createinput-is-not-defined/37089>\
**Category:** p5.js\
**Created:** [May 25, 2022, 8:05pm UTC](https://discourse.processing.org/t/uncaught-referenceerror-createinput-is-not-defined/37089 "2022-05-25T20:05:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluemoon](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bluemoon](https://discourse.processing.org/u/bluemoon)\
**Post date:** [May 25, 2022, 8:05pm UTC](https://discourse.processing.org/t/uncaught-referenceerror-createinput-is-not-defined/37089/1 "2022-05-25T20:05:11Z")

</div>

Hi Folks, getting this error on the following code in the Processing IDE. Works fine in the web editor. Not sure what the difference is, or why it can’t find createInput, which is a a p5 function… any thoughts? thanks!

```auto
var command = 'scry';

let params = {
    ignoreStopWords: true,
    ignoreCase: true,
    ignorePunctuation: true
}; 

function setup() {
  createCanvas(400, 400);
  background(250, 200, 0);
  textSize(20);
  noStroke();
  noLoop(); 
  let inp = createInput(''); 
  inp.position(80, 50);
  inp.size(100);
}

function draw(){
  button = createButton(command);
  button.position(input.x + input.width, 50);
}

```

On Mac OSX 10.14.6 and Processing IDE 3.5.3
