Next.js Discord

Discord Forum

The requested resource isn't a valid image for /example-image.png received text/html; charset

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
I'm getting this error when trying to use the Image component in Next 13.4.19. The image is definitely a .png and lives directly in the /public folder, but when I try to import it like this, it will not work:
   <Image
                            src="/example-image.png"
                            alt="Example image"
                            width={160}
                            height={90}
                          />


Any ideas?

1 Reply

Barbary Lion
Faced the same issue, and there was a forgotten running react app on my other desktop screen (mac), which was making the conflict

Posting it just for reference