I’m just starting out with the p5js library, so this is a really basic question. I have downloaded the library file and unzipped it. I started messing around with the files in the “empty example” directory using Brackets in Windows 10. I can add HTML to index.html and it displays in the browser. However, anything I add to sketch.js is ignored. The browser console reports p5.js is not found (404).
By default, p5.js is located in the parent directory as this snippet from index.html shows:
When I copy p5.js into the same directory as index.html and sketch.js, the p5js elements in the webpage work correctly.
I am at a loss to explain why the parent directory relative path – “…/p5.js” – is not interpreted correctly.
Any advice is greatly appreciated!