-
Hi Im using the new experimental Image fro Next.js.
The way I call it is:
What could I be doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @valcosmos Thanx for your answer. Are you using the new next/future/image also? I only get the error the first time, when I start the server (npm run dev) all other subsequent calls to the image runs fine. |
Beta Was this translation helpful? Give feedback.
-
Hi, This warning is raised by React, and it is caused on this line next.js/packages/next/client/future/image.tsx Line 510 in 3411794 const imgStyle = Object.assign({}, style)
const svgBlurPlaceholder = `url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ${widthInt} ${heightInt}'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='50'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cimage filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='${blurDataURL}'/%3E%3C/svg%3E");` React doesn't really like when the styles end with <p
style={{
color: "red;",
}}
>
hello
</p> You can try it on a codesandbox. I guess this has to be fixed by the |
Beta Was this translation helpful? Give feedback.
Hi,
This warning is raised by React, and it is caused on this line
next.js/packages/next/client/future/image.tsx
Line 510 in 3411794