Followed tutorial in gatsby docs, but kept getting an error. cloned this repo and updated deps one at a time to trace it, and sure enough, updating gatsby-source-filesystem
to latest breaks it
error Plugin default-site-plugin returned an error
Error:
success createPages — 0.018 s
success createPagesStatefully — 0.016 s
GraphQL Error Unknown field `allMarkdownRemark` on type `RootQueryType`
file: /home/bmp/code/gatsby-admitbrain/src/pages/index.js
1 |
2 | query IndexQuery {
> 3 | allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___date] }) {
| ^
4 | edges {
5 | node {
6 | excerpt(pruneLength: 250)
7 | id
8 | frontmatter {
9 | title
10 | date(formatString: "MMMM DD, YYYY")
11 | path
12 | }
13 |