Skip to content

How do I remove warning "Warning: Prop style did not match" when I import Image component in nextjs? #40648

Answered by l1qu1d
JuanSystems asked this question in Help
Discussion options

You must be logged in to vote

@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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@JuanSystems
Comment options

@l1qu1d
Comment options

@JuanSystems
Comment options

Answer selected by JuanSystems
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants