There was an error in your GraphQL query:
Expected type MdxFieldsEnum, found frontmatter___date. Did you mean the enum value frontmatter___title?
File: /path/to/project/novela-blog/node_modules/@narative/gatsby-theme-novela/src/components/Navigation/Navigation.Footer.tsx
There was an error in your GraphQL query:
Field "date" is not defined by type MdxFrontmatterFilterInput.
File: /path/to/project/novela-blog/node_modules/@narative/gatsby-theme-novela/src/components/Navigation/Navigation.Footer.tsx
I am trying to use only Contentful CMS. But when running gatsby develop with the content folder deleted, it produces the above result.
Steps to reproduce the behavior:
gatsby develop. You will find no error.content folder in the root of your project.gatsby develop. See error.content folder back and you will see no error.Expected to build the site without local data.
Chrome
_Add any other context about the problem here._
I am having this same exact issue, and can't figure out how to remove "My First Post" MDX
Facing the same issue. I think the source of the issue is the Navigation.Footer.tsx file which queries frontmatter___date and frontmatter___date is not being generated from contentful data for some reason.
I'd just strip this out. The whole purpose of this query is to calculate the copyright year span, e.g. 2017 - 2020. You can remove this allMdx query and set copyrightDate manually, or as 2017 - ${new Date().getFullYear()}
Yes, I think we'll just revert the PR that put this in to avoid headaches as it seems to be causing issues for quite a few people.
I ran into the same issue when I had an issue with unescaped quotes in the frontmatter (the excerpt) for a post. Sharing here in case anyone else hits the same issue.
Build fails even while overshadowing navigation.footer.tsx component.
Seems it'll need to be corrected at source as the _graphql query evals from node_modules is occurring before component constructs at build time. Has this been addressed in recent package versions?
As a workaround, I created at least one post and author profile using local: true data source, the rest using contentful.