Next Image Responsive documentation example error.
Answered
Blanc de Hotot posted this in #help-forum
Blanc de HototOP
Encountering an error while attempting to utilize the image response example provided in the documentation. Am i doing something wrong? Next version: "next": "14.1.3",
Answered by American Crow
width is only automatically read if the image file is imported directly (see example)
your image is a relative path
import mountain from ...your image is a relative path
/hero.png in that case you have to provide width and height since it's not known at bulid time2 Replies
American Crow
width is only automatically read if the image file is imported directly (see example)
your image is a relative path
import mountain from ...your image is a relative path
/hero.png in that case you have to provide width and height since it's not known at bulid timeAnswer
Blanc de HototOP
Thanks 🙂