-
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
Bug parsing an array of dates from a yaml file on a cold build #3953
Comments
I will investigate this. |
Just quick question - is this regression? Was it working earlier on cold build? |
I just tried my test repo with Gatsby 1.9.185 and it also failed. (it's under a new branch called |
Yeah, I didn't change anything related to date specifically (just moved code around). I see where the issue is and will make pull request with fix soon. |
Description
When parsing an array of dates from a yaml file, gatsby fails to add it to the GraphQL schema when doing a build without a cache. This triggers warnings about invalid queries, because the property being requested doesn't exist. After killing the process and starting gatsby again, leaving the cache in place, the problem is resolved.
I've only observed this for data coming from yaml files, not JSON files.
This may be related to the work done in #3688 that resolved #3556.
Environment
Gatsby version: 1.9.190
Node.js version: 8.9
Operating System: macOS 10.12.6 and whatever version of Debian Netlify is using on their Docker container
Steps to reproduce
See this repo https://github.com/lourd/gatsby-yaml-dates-array-bug
The text was updated successfully, but these errors were encountered: