You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error happens on PostTemplate, which is used by createPage. I'm using allMarkdownRemark because I want to show all other posts on a single post page.
It'd be great if someone could point me to how to debug this error... I don't even know which code is running .parent.
The text was updated successfully, but these errors were encountered:
chibicode
changed the title
GraphQLError: Cannot read property 'parent' of undefined on hot reload
Hot Reload Intermittent Error / GraphQLError: Cannot read property 'parent' of undefined
May 8, 2018
default-site-plugin is the name given to the gatsby-x.js files in the root of your project. So it sounds like the error could be occurring when running your gatsby-node.js file.
That particular error is created in Gatsby's query runner. There's an open PR for adding more info to that error, which could be useful.
You can either dive into the transpiled JS in node_modules/gatsby/dist/internal-plugins/query-runner/query-runner.js, or set up a local Gatsby dev environment to make changes to your Gatsby instal.
in any case as this doesn't happen all the time, it would probably mean that Gatsby tries to resolve fields during some kind of bad state, where node is not defined :/
Description
My blog (source) keeps getting this error on hot reload after 20-50 hot reloads - not sure exactly how to reproduce it.
The error happens on
PostTemplate
, which is used bycreatePage
. I'm usingallMarkdownRemark
because I want to show all other posts on a single post page.Here's the query:
Here's my gatsby config and gatsby node.
npm list gatsby
): 1.9.259gatsby --version
): 1.9.259It'd be great if someone could point me to how to debug this error... I don't even know which code is running
.parent
.The text was updated successfully, but these errors were encountered: