gatsby-source-google-sheets icon indicating copy to clipboard operation
gatsby-source-google-sheets copied to clipboard

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

Open lanzoninicola opened this issue 4 years ago • 7 comments
trafficstars

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 avatar Apr 07 '21 15:04 lanzoninicola

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

lanzoninicola avatar Apr 07 '21 15:04 lanzoninicola

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

michelebruno avatar Apr 09 '21 18:04 michelebruno

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

div-cowboy avatar Apr 13 '21 12:04 div-cowboy

@KyleAMathews any chance you can help this get merged 🙏

div-cowboy avatar Apr 15 '21 13:04 div-cowboy

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

jjrchrds avatar May 04 '21 03:05 jjrchrds

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

thegurf avatar Jul 18 '21 18:07 thegurf

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

ashishjaarvis avatar May 10 '22 07:05 ashishjaarvis