Closed luqven closed 2 years ago
Note, ignoring the commit-lint check failure since the link it's unhappy about is needed to understand the context of the commit.
:tada: This PR is included in version 1.7.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This PR addresses issue #136.
When extending a type, the plugin can at times fail to determine the original type extended the
Node
interface. This is likely a race condition, where the node we're extending is being created bybuildObjectType
before it's declared to be implementing the Node interface.This means that our plugin could cause errors to be thrown at build time, as the newly created type was expected to be of type
Node
.For more information see the Gatsby documentation here: https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization/#gatsby-type-builders
Steps to Test
Related issue: #136
Code:
Steps:
npm run develop
node_modules/@imgix/gatsby/src/modules/gatsby-plugin/gatsby-node.ts
161
addinterfaces: ["Node"],