ldd / gatsby-source-github-api

Pull data into Gatsby from Github API v4
MIT License
65 stars 10 forks source link

Gatsby v3.x compatibility #26

Closed erikbrgn closed 3 years ago

erikbrgn commented 3 years ago

On migrating a Gatsby 2.x project to 3.x, I ran into some issues with this plugin. After some debugging I found that boundActionCreators was removed in the update and actions should now be used in its place.

See this for reference.

bradgarropy commented 3 years ago

Hey @erikbrgn I had the same issue!

Cannot destructure property 'createNode' of 'boundActionCreators' as it is undefined.

How did you solve the problem?

erikbrgn commented 3 years ago

@bradgarropy I solved it by updating to the latest version of the repo. Unfortunately, the working version hasn't been published to npm yet it seems, so I changed the entry in package.json to point to the latest version of this repo.

bradgarropy commented 3 years ago

Thanks! I saw a related PR and left a few comments over there.

I fixed it by installing a fork that is ready for Gatsby v3.

ldd commented 3 years ago

It's published on NPM now.

bradgarropy commented 3 years ago

Confirmed, everything is working as expected with v1.0.0. Thank you @ldd!