How do I remove warning "Warning: Prop style
did not match" when I import Image component in nextjs?
#40648
-
Friends when importing an image with the Image component of nextjs I get the following warning:
I have already tried importing dynamically, adding a .babelrc file and placing a loader on the component and nothing. I would appreciate your help. Thank you very much. "dependencies": { code:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@JuanSystems I ran into the same weird warning as well and I suspect my solution will work for you as it has for me. Question: Are you using the extension If you notice in your warning you have Solution: Try toggling OFF the Why is this happening? Dark reader injects code into the source (in browser) and because you're in a development environment it's causing this error because it's checking for differences between pre-render and rendered hydration. Note: This warning won't show up in production and can safely be ignored while using the dark reader extension. To quote the hydration error help page:
|
Beta Was this translation helpful? Give feedback.
-
I don't have any kind of reader. How can I fix it?
|
Beta Was this translation helpful? Give feedback.
@JuanSystems I ran into the same weird warning as well and I suspect my solution will work for you as it has for me.
Question: Are you using the extension
dark reader
?If you notice in your warning you have
dark reader
:--darkreader-inline-bgimage:none; --darkreader-inline-bgcolor: initial; --darkreader-inline-border-top: initial; --darkreader-inline-border-right: initial; --darkreader-inline-border-bottom: initial; --darkreader-inline-border-left: initial;"
Solution: Try toggling OFF the
dark reader
extension and see if it fixes your problem.Why is this happening? Dark reader injects code into the source (in browser) and because you're in a development environment it's causing this erro…