Skip to content

Cannot read property 'createNode' of undefined (boundActionCreators.createNode) - GatsbyJS 3.2.1 #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lanzoninicola opened this issue Apr 7, 2021 · 7 comments

Comments

@lanzoninicola
Copy link

lanzoninicola commented Apr 7, 2021

Dear maintainer,
I faced in this issue after installing the plugin and followed the instructions as reported in the documentation.

`
ERROR #11321 PLUGIN

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

Cannot read property 'createNode' of undefined

32 | switch (_context.prev = _context.next) {
33 | case 0:

34 | createNode = boundActionCreators.createNode;
| ^
35 |
36 | console.log("FETCHING SHEET", fetchSheet);
37 | _context.next = 4;

File: node_modules\gatsby-source-google-sheets\gatsby-node.js:34:46
`

Below list of modules installed in my project:

{ "name": "gatsby-starter-default", "private": true, "description": "A simple starter to get up and developing quickly with Gatsby", "version": "0.1.0", "author": "Kyle Mathews <[email protected]>", "dependencies": { "babel-plugin-styled-components": "^1.12.0", "framer-motion": "^4.1.2", "gatsby": "^3.2.1", "gatsby-plugin-gatsby-cloud": "^2.2.0", "gatsby-plugin-image": "^1.2.0", "gatsby-plugin-manifest": "^3.2.0", "gatsby-plugin-offline": "^4.2.0", "gatsby-plugin-react-helmet": "^4.2.0", "gatsby-plugin-sharp": "^3.2.0", "gatsby-plugin-styled-components": "^4.2.0", "gatsby-source-contentful": "^5.2.0", "gatsby-source-filesystem": "^3.2.0", "gatsby-source-google-sheets": "^1.1.1", "gatsby-transformer-sharp": "^3.2.0", "prop-types": "^15.7.2", "react": "^17.0.1", "react-dom": "^17.0.1", "react-helmet": "^6.1.0", "styled-components": "^5.2.3", "styled-reset": "^4.3.4", "use-deep-compare-effect": "^1.6.1" }, "devDependencies": { "prettier": "2.2.1" }, "keywords": [ "gatsby" ], "license": "0BSD", "scripts": { "build": "gatsby build", "develop": "gatsby develop", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", "start": "npm run develop", "serve": "gatsby serve", "clean": "gatsby clean", "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1" }, "repository": { "type": "git", "url": "https://github.com/gatsbyjs/gatsby-starter-default" }, "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" } }

@lanzoninicola lanzoninicola changed the title Cannot read property 'createNode' of undefined (boundActionCreators.createNode) Cannot read property 'createNode' of undefined (boundActionCreators.createNode) - GatsbyJS 3.2.1 Apr 7, 2021
lanzoninicola added a commit to lanzoninicola/gatsby-source-google-sheets that referenced this issue Apr 7, 2021
The "boundActionCreators" API is deprecated and replaced with "action" as mentioned here: gatsbyjs/gatsby#6825. To avoid "breaking changes" for those still using GatsbyJS v1, I have not removed the boundActionCreators in the parameter list. It's up to you to make the final decision.
@lanzoninicola
Copy link
Author

I will send you a pull request #43. I hope can help to solve this issue.

@michelebruno
Copy link

michelebruno commented Apr 9, 2021

I have the same issue since I have updated to Gatsby 3. Please update asap, gatsby stopped working.

@div-cowboy
Copy link

Also having the same issue! Plz resolve asap as it's causing breaking changes.

@div-cowboy
Copy link

@KyleAMathews any chance you can help this get merged 🙏

jjrchrds added a commit to jjrchrds/gatsby-source-google-sheets that referenced this issue Apr 29, 2021
@jjrchrds
Copy link

jjrchrds commented May 4, 2021

Who do we tag to get this in! I got it working on a fork, but Netlify isn't having it.

@thegurf
Copy link

thegurf commented Jul 18, 2021

Gatsby Cloud doesn't seem to be a fan either.

@ashishjaarvis
Copy link

I'm also getting the same issue with Gatsby 4.13.1. Any luck?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants