We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de31c6 commit 2884780Copy full SHA for 2884780
packages/next/client/image.tsx
@@ -158,9 +158,9 @@ export default function Image({
158
if (process.env.NODE_ENV !== 'production') {
159
if (!VALID_LOADING_VALUES.includes(loading)) {
160
throw new Error(
161
- `Image with src "${src}" has invalid "loading" property. Provided "${loading}" should be one of ${VALID_LOADING_VALUES.join(
162
- ','
163
- )}.`
+ `Image with src "${src}" has invalid "loading" property. Provided "${loading}" should be one of ${VALID_LOADING_VALUES.map(
+ String
+ ).join(',')}.`
164
)
165
}
166
if (priority && loading === 'lazy') {
0 commit comments