Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

error GraphQL Error Unknown field childImageSharp on type File #9

Open
viktorsec opened this issue Apr 25, 2020 · 0 comments
Open

error GraphQL Error Unknown field childImageSharp on type File #9

viktorsec opened this issue Apr 25, 2020 · 0 comments

Comments

@viktorsec
Copy link

I followed the instructions, copied the types to Prismic, didn't use a gif for a header image.

Still:

error GraphQL Error Unknown field `childImageSharp` on type `File`

   1 | 
   2 |   query IndexQuery {
   3 |     caseStudies: allPrismicCaseStudy(sort: { fields: [last_publication_date], order: DESC }) {
   4 |       edges {
   5 |         node {
   6 |           uid
   7 |           data {
   8 |             header_image {
   9 |               localFile {
> 10 |                 childImageSharp {
     |                 ^
  11 |                   fluid(
  12 |                     maxWidth: 900
  13 |                     maxHeight: 900
  14 |                     quality: 90
  15 |                     traceSVG: { color: "#021212" }
  16 |                     cropFocus: ENTROPY
  17 |                   ) {
  18 |                     ...GatsbyImageSharpFluid_withWebp_tracedSVG
  19 |                   }
  20 |                 }
➜  node -v
v10.20.1
➜  yarn -v
1.7.0
➜  gatsby -v
Gatsby CLI version: 2.11.22
Gatsby version: 2.0.59
➜  sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant