Skip to content
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

"The gatsby-source-google-sheets plugin has generated no Gatsby nodes" when sheet has a single row #17

Closed
j-nolan opened this issue Aug 18, 2018 · 2 comments

Comments

@j-nolan
Copy link
Contributor

j-nolan commented Aug 18, 2018

Steps to reproduce:

  1. Query a spreadsheet that only has a single row
  2. gatsby develop
success open and validate gatsby-config — 0.007 s
...
⠁ FETCHING SHEET function fetchData(_x2, _x3, _x4) {
    return _ref.apply(this, arguments);
  }
warning The gatsby-source-google-sheets plugin has generated no Gatsby nodes. Do you need it?
success source and transform nodes — 1.032 s
...

And indeed, graphiql shows me that no node are created. It works fine with sheets that contain at least two rows.

@j-nolan
Copy link
Contributor Author

j-nolan commented Aug 18, 2018

Update: this is because the first row is considered the header. I was mistaken about how the spreadsheet should be formatted.

Request is that documentation should be updated to make it clear that the first row is the header.

Happy to make a PR if maintainers agree.

@drewatk
Copy link
Collaborator

drewatk commented Nov 9, 2018

Closing in favor of #22

@drewatk drewatk closed this as completed Nov 9, 2018
krerkkiat added a commit to krerkkiat/gatsby-source-google-sheets that referenced this issue Sep 26, 2019
The content are from the following discussion: brandonmp#21,
brandonmp#13, brandonmp#20, and
brandonmp#17.

try to address brandonmp#22
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

2 participants