rsnext/test/integration/image-component
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
..
asset-prefix Add experimental wildcard remotePatterns config for upstream images (#36245) 2022-05-05 02:19:16 +00:00
base-path Improve next/image error message when src prop is missing (#38847) 2022-07-20 21:26:38 +00:00
basic Fix <Image/>'s lazyRoot and other optimizations (#37447) 2022-06-21 14:01:17 +00:00
custom-resolver Update test set-up to leverage playwright when able to (#28634) 2021-09-13 14:36:25 +02:00
default Improve next/image error message when src prop is missing (#38847) 2022-07-20 21:26:38 +00:00
image-from-node-modules fix: next/image usage from node_modules (#33559) 2022-02-08 19:55:53 -05:00
no-intersection-observer-fallback Fix <Image/>'s lazyRoot and other optimizations (#37447) 2022-06-21 14:01:17 +00:00
noscript Update test set-up to leverage playwright when able to (#28634) 2021-09-13 14:36:25 +02:00
react-virtualized test: add inline flight response reuse test (#34364) 2022-02-15 18:53:45 +00:00
svgo-webpack Update test set-up to leverage playwright when able to (#28634) 2021-09-13 14:36:25 +02:00
trailing-slash make static image import output path consistent with other media (#30168) 2021-10-22 13:25:54 +00:00
typescript Replace placeholder.com images with *.vercel.app in image-component tests (#38090) 2022-06-30 21:10:16 +00:00
unicode Add experimental wildcard remotePatterns config for upstream images (#36245) 2022-05-05 02:19:16 +00:00
unoptimized Update flakey unoptimized image test (#38478) 2022-07-09 11:10:11 -05:00