-
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
Unknown argument \"formatString\" on field \"date\" of type \"frontmatter_2\". #2173
Comments
The problem is your date field isn't being inferred as a "date". I'd look at your posts to see if some of the fields aren't valid. These are the supported formats
|
My date formats were correct, but it turns out that dates now have to be put inside quotes, so
|
After a bit of thinking, I'm not sure about when quotes should be used inside a front matter. According to the Jekyll Front Matter docs, quotes should not be necessary. |
They're not. Thanks easiest way for me to help you would be if you could build me a site reproducing the problem like Joseph did here #2096 (comment) |
Clone this repository at 865a0ad75214e85304edbf72906abde6b3a1d040 and then run |
Thanks for the reproduction! Problem was I didn't actually fix the issue in my last PR… I used Date.toString instead of Date.toJSON which meant that the serialized dates weren't recognizable as dates later when inferring the GraphQL schema! New PR is up fixing this, thanks again for testing! Also nice looking site :-) |
This was made possible by the fix provided for gatsbyjs/gatsby#2173
I'm running into this now, not sure what to change, tho. |
oh, i get it now...I have to put a |
@KyleAMathews It would be so, so useful if the error returned which document it happened on. |
Agreed! What post do I need to fix? |
Since upgrading from Gatsby v1.9.33 to v1.9.39, I get the error message showcased in the issue title when running a query similar to the gatsby-plugin-remark usage example:
I'm not sure about the cause, but found an issue which might be related to the problem: #2096
The text was updated successfully, but these errors were encountered: