Error message in the console regarding img src not able to load #743
-
Hi everyone, I've been trying to make the image appears but keep getting the error message in the console. I double check path to the image file and it seems to be correct so I am not sure why the image still broken (see below). Could someone please help me fix this issue? and this is the codes:
here is the repository of the project Thank you so much in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey Niracha, good to se you again! Since the img is already in the <img src="/assets/game-icon.png"/> Even better, use the Let us know if it works ^^ |
Beta Was this translation helpful? Give feedback.
Hey Niracha, good to se you again!
Since the img is already in the
public
folder, you can reference it directly as:Even better, use the
Image
component fromnext/image
.Let us know if it works ^^