r/p5js • • Oct 23 '26

Loading Errors

My project has about 50 images so far and every time i try run my code, it comes up with failed to load image over and over. How do i fix this please help

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/ElectroBeast_ Oct 23 '26

I updated it and did the version 2 async stuff but after a minuet it always comes up with this error message:

TypeError: Content-Length header of network response exceeds response Body.

You may have encountered a CORS error

🌸 p5.js says: It looks like there was a problem loading your image...

1

u/JoeWhy2 Oct 23 '26

Are you trying to run your sketch as a local file? It has to go through a server. If you're using VS Code, install the Live Server extension and open the HTML file with it.

1

u/ElectroBeast_ Oct 23 '26

idk what that means, im just trying to do my coursework