Phaser can't find images

I recently changed the structure of my project, and for some reason Phaser can’t find my images any more.

New structure:
image

the images are there
image

One of my scenes:

preload() {
    this.load.image("blueTile", "client/src/phaser/assets/blueTile2.png");
};

I get the error:
image

anyone know why?

thanks in advance :slight_smile:

This worked for me
Just add ‘./’ at beginning of the image source

preload() {
    this.load.image("blueTile", "./client/src/phaser/assets/blueTile2.png");
};

What’s the URL in the browser address bar?

And what’s the full URL of the “not found” asset?

@samme
URL in the browser: http://localhost:8080/game
URL of asset: http://localhost:8080/client/src/phaser/assets/blueTile2.png

Didn’t work sadly. same error

What do you see if you open http://localhost:8080/client/src/phaser/assets/blueTile2.png directly in the browser?

image

:man_facepalming:
http://localhost:8080/src/phaser/assets/blueTile2.png is the URL, not http://localhost:8080/client/src/phaser/assets/blueTile2.png
So sorry about that.

if i go to the correct URL I get my asset