thetrevorharmon / gatsby-theme-shopify-manager

The easiest way to start a Shopify shop on Gatsby.
https://gatsby-theme-shopify-manager.netlify.app/
MIT License
122 stars 12 forks source link

GraphQL query error on 'yarn develop' #88

Open natatat opened 3 years ago

natatat commented 3 years ago

after putting my shopName and accessToken in gatsby-config.js, I run yarn develop and see this error:

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "coreOptions" on type "Query".

If you don't expect "coreOptions" to exist on the type "Query" it is most likely a typo.
However, if you expect "coreOptions" to exist there are a couple of solutions to common problems:

- 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
- 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
- You want to optionally use your field "coreOptions" 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 at
least one entry with that field ("dummy content")

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

File: node_modules/gatsby-theme-shopify-manager/src/utils/useCoreOptions/useCoreOptions.ts:11:7
joshua-isaac commented 3 years ago

Im seeing the same error :(

Were you able to figure it out @natatat ?

scottbaggett commented 3 years ago

I also have the same issue.