birkir / gatsby-source-prismic-graphql

Gatsby source plugin for Prismic GraphQL
MIT License
137 stars 75 forks source link

build throws an error when querying for an imageSharp image #198

Open Z11 opened 4 years ago

Z11 commented 4 years ago

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

ohlr commented 4 years ago

duplicate of https://github.com/birkir/gatsby-source-prismic-graphql/issues/148