gatsby-bigcommerce-netlify-cms-starter icon indicating copy to clipboard operation
gatsby-bigcommerce-netlify-cms-starter copied to clipboard

Build fails due to GraphQL query error

Open samproc119 opened this issue 5 years ago • 1 comments

Bug report

What is the current behavior?

Build Fails

If the current behavior is a bug, please provide the steps to reproduce.

  1. One Click Deploy via deploy to netlify button
  2. Update netlify environment variables
  3. Deploy fails with: 3:45:28 PM: error #85907 GRAPHQL 3:45:28 PM: There was an error in your GraphQL query: 3:45:28 PM: - Unknown field 'images' on type '[BigCommerceProducts!]!'. Source: document ProductPage file: GraphQL request 3:45:28 PM: File: src/templates/product-details.js

What is the expected behavior?

Deploy should complete successfully

Other relevant information:

Node.js version: NPM/Yarn version: Operating System: Additional tools:

samproc119 avatar Nov 27 '19 04:11 samproc119

I am getting a very similar error just with a different field

- Unknown field 'option_values' on type '[BigCommerceProductsVariants]'. Source: document `ProductPage` file: `GraphQL request`

File: src\templates\product-details.js

Removing that node from the graphql queries on product-details.js and product-page.js allowed the build to complete successfully.

michoelchaikin avatar Dec 11 '19 01:12 michoelchaikin