p5.js-editor icon indicating copy to clipboard operation
p5.js-editor copied to clipboard

No drawing when using p5.js editor browser + Weird behaivor of files when draw in browser( Chrome)

Open guevarajoge opened this issue 9 years ago • 0 comments

Somebody know why m getting this " require is not defined", " Uncaught TypeError: Cannot read property 'postMessage' of null as an error" when i try to draw something using the P.5js editor ? .. i found weird that the "createCanvas " function works so, i dont know why is not reacting. I If i use the option run it in browser( Chrome) it runs the draws. But there is a weird behavior when i save, close the editor and try to open/ run a previous save file, It runs files that were previously worked, after I open few times the same file I eventually got the right one..

this its making my work soooo sooo slow and not ENCORAGING AT ALL ... less for a person who its just starting with coding.

M running P5.js Version 0.6.2 (0.6.2) with OS 10.11.6 .

here are some screeenshoots n he HTML file

Untitled
<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>

<script src="sketch.js" type="text/javascript"></script>

<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style>

screen_shot_2016-11-06_at_7 25 52_p m screen_shot_2016-11-06_at_7 26 27_p m

guevarajoge avatar Nov 18 '16 19:11 guevarajoge