brandonmp / gatsby-source-google-sheets

A GatsbyJS plugin that pulls nodes from rows in a Google Sheet.
90 stars 32 forks source link

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

Open lanzoninicola opened 3 years ago

lanzoninicola commented 3 years ago

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 <mathews.kyle@gmail.com>", "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 commented 3 years ago

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

michelebruno commented 3 years ago

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

div-cowboy commented 3 years ago

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

div-cowboy commented 3 years ago

@KyleAMathews any chance you can help this get merged 🙏

jjrchrds commented 3 years ago

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

thegurf commented 3 years ago

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

ashishjaarvis commented 2 years ago

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