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

"Error: The result of this StaticQuery could not be fetched." In new template project #26798

Closed
jgregordev opened this issue Sep 6, 2020 · 8 comments
Labels
status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: bug An issue or pull request relating to a bug in Gatsby

Comments

@jgregordev
Copy link

jgregordev commented Sep 6, 2020

Description

Building and serving a deploy of the 'gatsby-starter-default' project throws several errors regarding fetching StaticQuery.
Error: The result of this StaticQuery could not be fetched.

Steps to reproduce

  • gatsby new (left the name default)
  • gatsby-starter-default
  • cd my-gatsby-project
  • npm i
  • gatsby build
  • gatsby serve
  • Open page on given url and open console

The errors are also emitted again on refresh.

Expected result

No errors should be emitted in the console.

Actual result

Three StaticQuery fetch errors post to the console. The purple space man also remains low resolution.

Environment

System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Binaries:
Node: 14.9.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.8.5
Browsers:
Chrome: 85.0.4183.83
Edge: Spartan (44.18362.449.0)
npmPackages:
gatsby: ^2.24.50 => 2.24.53
gatsby-image: ^2.4.16 => 2.4.16
gatsby-plugin-manifest: ^2.4.24 => 2.4.27
gatsby-plugin-offline: ^3.2.24 => 3.2.26
gatsby-plugin-react-helmet: ^3.3.10 => 3.3.10
gatsby-plugin-sharp: ^2.6.28 => 2.6.31
gatsby-source-filesystem: ^2.3.25 => 2.3.27
gatsby-transformer-sharp: ^2.5.13 => 2.5.14
npmGlobalPackages:
gatsby-cli: 2.12.91

I have also searched around other issues, but they always seem to have some moving part to consider that this does not (Netlify, for example).

I have tried

  • Running gatsby clean, deleting node_modules, running npm i, rebuilding and reserving.
  • Removing every gatsby package except gatsby itself.
  • Running npm update and retrying the above.
@jgregordev jgregordev added the type: bug An issue or pull request relating to a bug in Gatsby label Sep 6, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 6, 2020
@pvdz
Copy link
Contributor

pvdz commented Sep 8, 2020

Hi @ZPanic0! Thanks for your report. I've followed your steps but was unable to reproduce this in chrome nor firefox in linux. I'm going to ask somebody on Windows to verify this.

@pvdz pvdz added topic: internal and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer topic: internal labels Sep 8, 2020
@pvdz
Copy link
Contributor

pvdz commented Sep 8, 2020

Apparently it works on Windows machines when we tried.

But the error message is not new. For example, #23761

Might there be something in your environment that is changing the behavior from the default?

@jgregordev
Copy link
Author

If there is, I don't know what. Could you tell me how to check?

I will stand up a vm today and try again inside that as well.

@jgregordev
Copy link
Author

I can confirm on a brand new vm installation of Windows 10 that I do not see this error on new projects.

@LekoArts LekoArts added the status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. label Sep 18, 2020
@LekoArts
Copy link
Contributor

You could install the packages (same version as your current system) bit by bit to the VM.

@LekoArts
Copy link
Contributor

I'll close this as a duplicate of #26563 - please give your reproduction there when possible. Thanks!

@jgregordev
Copy link
Author

jgregordev commented Sep 21, 2020 via email

@samarthvats9
Copy link

samarthvats9 commented Feb 8, 2022

Hey, I am new to this but I have tried this - npm install react@^16.8.0 react-dom@^16.8.0 and it's working now. Please let me know if this is of any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

4 participants