#Help with p5.js

7 messages · Page 1 of 1 (latest)

final palm
#

Watching and following his Word definition extension video : https://www.youtube.com/watch?v=GWDx1GnxhOw
Can anyone help me understand why I'm getting the following errors? I'm following him step by step but I'm not sure why window is not defined. Is it a p5.js method? I attached my index.html as well. Much thanks

In this coding challenge, I attempt to make a chrome extension that looks up a selected word’s definition using the Wordnik API. Code: https://thecodingtrain.com/challenges/84-word-definition-chrome-extension

🎥 Previous video: https://youtu.be/IXXNIcQQLU8?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Next video: https://youtu.be/FWSR_7kZuYg?list=PL...

▶ Play video
dark geode
#

I'm not that good at React and NPM, but i guess that u haven´t installed the library for "window", when u have installed the "window" library maybe it's in the wrong folder.

final palm
dark geode
#

i don´t know, i searched it on the internet, and i guess the window library is not in P5 js

final palm
#

Thanks

formal pike
#

possibly the window var is not available in a background script

#

not sure thogh