-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
this.props.data is undefined during hot reload #5048
Comments
i am having the same issue running linux and node 9. |
Try putting everything but index.js (from src/pages) into another folder and also modify gatsby-config respectively. The pages folder is not intended for markdown files afaik. |
for my case i dont have markdown inside pages.. |
@orf thanks for the link to the repo, I can confirm the error you're seeing. Changing a markdown file triggers multiple recompiles in Gatsby followed by a
I"m not sure what's causing this but going to label it as a bug for now. |
I can see the same behavior without this warning (if that helps nail it down) |
The warning has been there previously, when I ran into another issue: #3551 I don't think it's related to this at all. |
Old issues will be closed after 30 days of inactivity. This issue has been quiet for 20 days and is being marked as stale. Reply here or add the label "not stale" to keep this issue open! |
This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new issue. |
Description
When running
gatsby develop
and making a change to a markdown file the page fails to render again until gatsby is restarted, failing withthis.props.data is undefined
Steps to reproduce
Clone https://github.com/orf/blog-gatsby/
Run yarn && yarn dev
Open a blog page
Make a change to any markdown file within
src/pages/
See that the page now fails to load with a React error, and refreshing does not work
Expected result
The page should load
Actual result
The page does not load
Environment
npm list gatsby
): 1.9.253gatsby --version
): 1.9.250The text was updated successfully, but these errors were encountered: