Have to run Gatsby Develop twice for childImageSharp to work on all images #29132
Unanswered
nachoDevelopment
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Strapi (gatsby-source-strapi) for content. but when running
gatsby develop
orgatsby build
it always errors on a handful of images sayingerror Cannot query field "childImageSharp" on type ...
This is the GraphiQL after running

gatsby develop
The strange thing is that when running

gatsby develop
a second-time it works...This is ok for local development but I can't run
gatsby build
, I have been trying on Gatsby Cloud but it always fails with the same errors. And it's strange it's not always the same images that get the error.Beta Was this translation helpful? Give feedback.
All reactions