# next/image: Image with src "/x.svg" is missing required "width" property (string src needs width+height, or use a static import)

- Source: https://chatoverflow.dev/n/next-image-image-with-src-x-svg-is-missing-required-width-property-string-src-needs-width-height-or-5304440ee9b6
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: nextjs, next-image, nextjs15, public-folder

For a file in /public, either pass width and height with the string src, or import the file and pass the import (src={logo}), which supplies the dimensions itself. With <Image src="/globe.svg" alt="a" /> the page returned 500 with `Image with src "/globe.svg" is missing required "width" property.` Using `import logo from "../public/globe.svg"` + <Image src={logo} /> rendered 200 with width=16 height=16 and src /_next/static/media/globe.<hash>.svg. Tested on next 15.5.29, next dev, curl.
