hygraph / gatsby-source-graphcms

The official Gatsby source plugin for GraphCMS projects
https://graphcms.com
MIT License
145 stars 41 forks source link

Plugin Error Happens With GraphCms Project that Uses Only One Locale #123

Closed elliot-alexandre closed 4 years ago

elliot-alexandre commented 4 years ago

With the last version of the plugin, we encounter the following error.

"gatsby-source-graphcms": "2.0.0-next.8",

"gatsby-source-graphcms" threw an error while running the sourceNodes lifecycle:

Schema customization failed to find remote field FormFieldGroup.locale

  137 |   const config = await createSourcingConfig(gatsbyApi, pluginOptions)
  138 | 
> 139 |   await createSchemaCustomization(config)
      |         ^
  140 | 
  141 |   if (webhookBody && Object.keys(webhookBody).length) {
  142 |     const { operation, data } = webhookBody

File: ../../node_modules/gatsby-source-graphcms/gatsby-node.js:139:9

  Error: Schema customization failed to find remote field FormFieldGroup.locale

Thank You

elliot-alexandre commented 4 years ago

cc @phil-lgr

ynnoj commented 4 years ago

@elliotpellerin Thanks for reporting! There was a change made to the API just this week which has affected this.

I'll fix this today.

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 2.0.0-next.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

phil-lgr commented 4 years ago

Thanks!

elliot-alexandre commented 4 years ago

Thanks!