Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Expected server HTML to contain a matching <span> in <figure> #20

Closed
matiasbenedetto opened this issue Dec 4, 2018 · 2 comments
Labels
question Further information is requested

Comments

@matiasbenedetto
Copy link

matiasbenedetto commented Dec 4, 2018

Bug description
When using the lib a warning is printed in the browser console.

To Reproduce
When i use this in my NextJs site, the lazy loading works ok but the browser console print a warning.
<LazyLoadImage alt={post.title.rendered} src={featuredImage} />

The warning is:
Warning: Expected server HTML to contain a matching <span> in <figure>

The problem is also described in this issue: #15

Expected behavior
Not show any warning

Technical details:

  • Server Side Rendering? [Yes]
  • Device [Desktop]
  • Operating System [GNU/Linux]
  • Browser [Firefox and Chrome at least]
@Aljullu
Copy link
Owner

Aljullu commented Dec 4, 2018

Thanks @matiasbenedetto for opening an issue about that. It looks like it's already two people facing the same issue so there must be something going on.

Unfortunately, I'm still unable to reproduce the issue. It seems to have something to do with ReactDOM.hydrate() and ReactDOM.render(), but I would need to be able to reproduce it in order to find a fix.

Would you mind sharing your code with me, so I could reproduce the issue? In case you don't want to upload it in public, you could send it to me to my email address (it's in the side bar of my GitHub profile).

@Aljullu Aljullu added the question Further information is requested label Jan 26, 2019
@Aljullu
Copy link
Owner

Aljullu commented Jul 27, 2019

Closing it for now since this issue has been inactive for a while.

@Aljullu Aljullu closed this as completed Jul 27, 2019
@Aljullu Aljullu added support question Further information is requested and removed question Further information is requested support labels Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants