gatsby: bug(gatsby-source-shopify): "Error: Invariant Violation: Encountered an error trying to infer a GraphQL type for: `products___NODE`. There is no corresponding node with the `id` field matching"

Hi, I’m attempting to build an ecommerce with gatsby using gatsby-source-shopify

I’m seeing console error

  • Error: Invariant Violation: Encountered an error trying to infer a GraphQL type for: products___NODE. There is no corresponding node with the id field matching:

I’m seeing the error on both command “gatsby develop” and “gatsby build” I found the previous issue#14193 but couldn’t understand how it solved.

From gatsby-source-shopify docs. there’s no clear instructions on how to expose metafield to the Shopify Storefront API from gatsby side or config.

I opened as a bug issue because sometimes the gatsby develop and build works with no issue. almost like 50% of the time works with no error and 50% failing to run develop/build with the above error.

package version: “gatsby”: “^2.21.0” “gatsby-source-shopify”: “^3.2.3”

Thank you

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 10
  • Comments: 15 (4 by maintainers)

Commits related to this issue

Most upvoted comments

this is still an issue

Hi @madalynrose sorry, a little late.

here is the minimal repo with the exact packages and configs I used where this error happening with gatsby-source-shopify

gatsby clipboard is in it too as a txt file.

https://github.com/iKeeko/gatsby-repro

Thank you