rsnext/test/integration/image-component/default
Steven cdb0c47455
Improve next/image error message when src prop is missing (#38847)
Currently, when a user forgets the `src` prop on an image, an error is thrown. However that error doesn't include any of the the user's code in the stack trace, so its nearly impossible to figure out which image is the culprit if there are multiple images on the page.

Since this error only throws on demand when a page is visited during `next dev`, we can instead delay the error so it no longer prints on the server but prints on mount instead. At that point, we'll have the `<img>` element via ref and can print it to the web console with the stack trace.

- Fixes #23742
2022-07-20 21:26:38 +00:00
..
components Support for static image imports (#24993) 2021-06-04 10:06:00 +02:00
pages Remove layout raw image experiment (#38006) 2022-06-27 15:11:15 +00:00
public Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
test Improve next/image error message when src prop is missing (#38847) 2022-07-20 21:26:38 +00:00
style.module.css Fix style reset on image with placeholder=blur (#32680) 2021-12-20 17:49:35 +00:00