Updating Netlify Build Image from Xenial 16.04 to Focal 20.04 and getting GraphQL Query Error

Viewed 38

So this is my first job in front end development, I have built sites before but not in Gatsby or with react and I'm not super familiar with Netlify. Not sure what all I need to post here to show my problem correctly but I'll post what I think and if you need more info I can get it. Thanks for any help.

I believe my issue is a dependency issue, but the site I'm managing wasn't built by me and the builder works a new job and is difficult to contact.

I have tried upgrading all dependencies in the project at one point, but since I've never used yarn and its running off of a very old version, couldn't get it working when I tried. Haven't tried much since, but will try anything.

I expected the build to succeed and the site to publish.

What happened is shown in the logs below:

Image of logs on Netlify

8:52:52 AM: gatsby-source-shopify/precision-sonar-outdoors starting to fetch data from Shopify 8:52:52 AM: error 8:52:52 AM: error an error occurred while sourcing data 8:52:52 AM: error - 8:52:52 AM: message: Throttled 8:52:52 AM: extensions: 8:52:52 AM: code: THROTTLED 8:52:52 AM: error query: 8:52:52 AM: """ 8:52:52 AM: query GetShop { 8:52:52 AM: shop { 8:52:52 AM: description 8:52:52 AM: moneyFormat 8:52:52 AM: name 8:52:52 AM: } 8:52:52 AM: } 8:52:52 AM: """ variables: 8:52:52 AM: first: 250 8:52:52 AM: Created product nodes: 0.395ms 8:52:52 AM: warning The gatsby-source-shopify plugin has generated no Gatsby nodes. Do you need it? 8:52:52 AM: warning The gatsby-plugin-products plugin has generated no Gatsby nodes. Do you need it? 8:52:52 AM: warning The @gatsby-contrib/gatsby-plugin-elasticlunr-search plugin has generated no Gatsby nodes. Do you need it? 8:52:52 AM: success source and transform nodes - 2.421s 8:52:52 AM: success building schema - 0.294s 8:52:52 AM: error There was an error in your GraphQL query: 8:52:52 AM: Cannot query field "allShopifyProduct" on type "Query". 8:52:52 AM: If you don't expect "allShopifyProduct" to exist on the type "Query" it is most likely a typo. However, if you expect "allShopifyProduct" to exist there are a couple of solutions to common problems: 8:52:52 AM: - If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server 8:52:52 AM: - The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have 8:52:52 AM: - You want to optionally use your field "allShopifyProduct" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content") 8:52:52 AM: It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query": https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions 8:52:52 AM: not finished createPages - 0.021s 8:52:52 AM: npm ERR! code ELIFECYCLE 8:52:52 AM: npm ERR! errno 1 8:52:52 AM: npm ERR! precision-sonar@ build: gatsby build 8:52:52 AM: npm ERR! Exit status 1 8:52:52 AM: npm ERR! 8:52:52 AM: npm ERR! Failed at the precision-sonar@ build script. 8:52:52 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 8:52:52 AM: npm ERR! A complete log of this run can be found in: 8:52:52 AM: npm ERR! /opt/buildhome/.npm/_logs/2022-09-09T13_52_52_639Z-debug.log

0 Answers
Related