External Libraries Do Not Import Properly Into Web Editor

Hey Everyone!

I’ve been having some issues with the p5 web editor, where I try to import an external library and it uploads with no text or feedback at all. Then, when I try to call a function from the library, it acts like it does not exist. I attached a gif of how I am importing them in case I am doing something wrong, but it seems like there is something within the editor that makes it struggle with external libraries.

If there is something I’m doing wrong or a strategy you all know to get these things to import properly, please let me know!

Thanks

try …

<script src=“lib/p5.touchgui.js”></script>

Nah that doesn’t work either, I have no idea what’s going on here…

found this working example you could fork …

https://editor.p5js.org/L05/sketches/E6r_xMBKa

1 Like

That’s one way to get it working… Thanks!

1 Like