Closed sparklesam closed 6 years ago
Hi! Thank you very much for your theme, I was trying to develop for the first time, after setting up the Prismic.io. However, I got the following errors:
TypeError: Cannot read property 'caseStudies' of undefined
which points to the GraphQL error
GraphQL Error Unknown fieldlocalFileon typeheaderImage_2`
GraphQL Error Unknown field
on type
file: .../src/pages/index.jsx
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 | sizes( 12 | maxWidth: 900 13 | maxHeight: 900 14 | quality: 90 15 | traceSVG: { color: "#021212" } 16 | cropFocus: ENTROPY 17 | ) { 18 | ...GatsbyImageSharpSizes_withWebp_tracedSVG`
Any idea why this would happen?
I have uploaded my source file on github https://github.com/sparklesam/bella/tree/Develop-Portfolio/desktop
@sparklesam Oh, sorry for the delayed answer, I was on vacation.
Did you sort it out?
Did you copy the JSON file for the custom type?
Closing now. Please let me know if it’s still an issur
Hi! Thank you very much for your theme, I was trying to develop for the first time, after setting up the Prismic.io. However, I got the following errors:
TypeError: Cannot read property 'caseStudies' of undefined
which points to the GraphQL error
GraphQL Error Unknown field
localFileon type
headerImage_2`file: .../src/pages/index.jsx
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 {
Any idea why this would happen?
I have uploaded my source file on github https://github.com/sparklesam/bella/tree/Develop-Portfolio/desktop