gatsby-source-openapi-aggregate icon indicating copy to clipboard operation
gatsby-source-openapi-aggregate copied to clipboard

Incompatible with Gatsby 3 due to usage of `boundActionCreators`

Open epbarger opened this issue 4 years ago • 0 comments

See https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/#removal-of-boundactioncreators.

Seems like you just need to replace boundActionCreators with actions. I tried it locally and that seems to be only change needed to get this to work :)

The sample project probably needs to be updated to at least Gatsby 2 also.

Or if you want to support gatsby 1 through 3 maybe this would work...

exports.sourceNodes = async ({ actions, boundActionCreators }, options) => {
  const { createNode } = actions || boundActionCreators;

epbarger avatar Mar 18 '21 20:03 epbarger