编译时出现graphQL错误

Dav*_*sen 5 javascript reactjs graphql gatsby

我正在阅读本教程:https : //www.gatsbyjs.org/blog/2017-07-19-creating-a-blog-with-gatsby/

我已经完成了所有工作,并且遇到了graphQL编译错误:

GraphQL Error There was an error while compiling your site's GraphQL queries.
Invariant Violation: GraphQLParser: Unknown argument `formatString`. 
Source: document `BlogPostByPath` file: `GraphQL request`.
Run Code Online (Sandbox Code Playgroud)

这是我的查询:

export const pageQuery = graphql`
  query BlogPostByPath($path: String!) {
    markdownRemark(frontmatter: { path: { eq: $path } }) {
      html
      frontmatter {
        date(formatString: "MMMM DD, YYYY")
        path
        title
      }
    }
  }
`
;
Run Code Online (Sandbox Code Playgroud)

编译错误指向日期对象,当我删除它时,日期编译错误就消失了。我的日期对象有什么问题?

Sib*_*iti -4

它应该是“MMM”而不是“MMMM”。