post5 icon indicating copy to clipboard operation
post5 copied to clipboard

Importing post5.js throws reference error - in examples too

Open zetenynagy opened this issue 1 year ago • 2 comments

If I try to use post5 in any of my own projects, or if I try to run the examples, I get the following error:

ReferenceError: Can't find variable: info
    at mpInit (/post5.js:4211:13)

    at (anonymous function) (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.js:48986:25)

    at forEach ([native code])

    at p5 (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.js:48984:51)

    at _globalInit (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.js:48197:34)

    at promiseReactionJob ([native code])

🌸 p5.js says: It seems that you may have accidently written info instead of int (on line 4211 in blob:https://preview.p5js.org/670c3bd7-010f-47d1-b962-df67665cac53 [blob:https://preview.p5js.org/670c3bd7-010f-47d1-b962-df67665cac53:4211:13]).

Please correct it to int if you wish to use the function from p5.js (http://p5js.org/reference/#/p5/int) 

zetenynagy avatar Apr 25 '23 02:04 zetenynagy

@zetenynagy thanks for bringing this up; i'll look into it

bandaloo avatar May 02 '23 15:05 bandaloo

might be worth mentioning that i only tested it using editor.p5js.org - i don't know if it still happens using a different IDE

zetenynagy avatar May 02 '23 16:05 zetenynagy