Image path not found. How can you set the path correctly? in react


I’m working on React. The path of the image cannot be found when deployed after building.
Looking at it, I think it’s because the path of the image was set incorrectly.
enter image description here

How can I set the path correctly when building?
All the other images come out well.
But if url goes in the form of "/detail/1", it won’t get the image.
I wonder how I can change the request url as you can see in the picture. thanks.

Source: React – Stack Overflow

November 30, 2021
Category : News
Tags: build | image | reactjs | routes

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.