I'm actually using a Stack Overflow post to help push this forward, since it describes the issue and how a specific version only works (link below). The solution is to downgrade to "gatsby-source-prismic-graphql": "3.4.1-alpha.0".
In summary, when trying to query an imageSharp with newer versions of "gatsby-source-prismic-graphql" it will not work.
In my example, this would fail:
query { prismic { home_page(uid: "home_page_slug", lang: "en-us") { background_home_image background_home_imageSharp { childImageSharp { fluid(quality: 100, maxWidth: 2000) { sizes } } } } } }
Once i downgraded to "gatsby-source-prismic-graphql": "3.4.1-alpha.0" it worked.
I'm actually using a Stack Overflow post to help push this forward, since it describes the issue and how a specific version only works (link below). The solution is to downgrade to "gatsby-source-prismic-graphql": "3.4.1-alpha.0".
In summary, when trying to query an imageSharp with newer versions of "gatsby-source-prismic-graphql" it will not work.
In my example, this would fail:
query { prismic { home_page(uid: "home_page_slug", lang: "en-us") { background_home_image background_home_imageSharp { childImageSharp { fluid(quality: 100, maxWidth: 2000) { sizes } } } } } }
Once i downgraded to "gatsby-source-prismic-graphql": "3.4.1-alpha.0" it worked.
https://stackoverflow.com/questions/61176735/gatsby-source-prismic-graphql-production-build-throws-an-error-when-querying-for