Error: The result of this StaticQuery could not be fetched
moglideveloper opened this issue · 5 comments
Checked out lesson-20 branch from https://github.com/iamshaunjp/gatsby-tutorial.git.
After executing below two commands in the checked out repo :-
npm install
gatsby develop
server starteed listening on 8000 port.
Getting Error: The result of this StaticQuery could not be fetched
when I try to open http://localhost:8000/
This looks like a cache issue.
Clear your .cache and try again by running --> gatsby clean
I'm experiencing the same issue and have run the gatsby clean
command to no avail.
As mentioned in his Youtube video, UseStaticQuery has issues with components that starts with lowercase. Just rename your layout.js and navbar.js to Layout.js and Navbar.js respectively.
Even with Uppercase I got this issue.
The only solution I found but its pretty annoying:
is to comment the area where it says useStaticQuery, run gatsby develop and uncomment that area.