-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Images don't appear the first time the user loads a page on gatsbyjs.org #9174
Comments
It happens in an incognito window so it's not an offline problem. |
Additional info: The problem manifests in https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-images/src/index.js#L181-L183.
So inside the So the actual problem seems to be with what gets returned by |
This is more nuanced - building locally or on netlify we don't get this issue - it only show up when we build on our custom build runner |
More info: This is the same as [gatsby-remark-images] new images 404 or end up being 0x0 pixels and is explained in detail in Rewrite parseStyle parser to correctly transform parenthesis and quotes. Locally (the developer build) works correctly but the live site (gatsbyjs.org) still has the problem. Not sure if the live version is built with the latest versions, or if a different version of the hast-to-hyperscript is used. A quick fix/hack (temporary as it only works around the actual problem) would be to move the |
That's interesting and really looks like the same issue, but |
Not very well versed in build systems and yarn, but i see in the root yarn.lock https://github.com/gatsbyjs/gatsby/blob/master/yarn.lock#L9238-L9249) that it references 3.1.0 version of hast-to-hyperscript. |
@gpetrioli Yeah, seems like transitive dependency of |
It seems like it was fixed with this upgrade. Thanks @gpetrioli for providing context for that! I owe you! I'm still baffled why it wasn't manifesting locally for me |
Im having the same issue, has the fix been released? |
Yep! Closing. |
Description
Images don't appear the first time a site is loaded on gatsbyjs.org.
Seems like an offline-plugin issue -- perhaps @davidbailey00 could take a look?
Steps to reproduce
Visit a post you haven't visited before, that has images, such as https://www.gatsbyjs.org/blog/2018-10-04-journey-to-the-content-mesh/, that has images.
Expected result
Actual result
Environment
iPhone XS, Chrome
2015 Macbook Pro, Chrome incognito
The text was updated successfully, but these errors were encountered: