Skip to content
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

Expected type MarkdownRemarkFieldsEnum, found frontmatter___date. #27

Open
chippography opened this issue Feb 10, 2020 · 1 comment
Open

Comments

@chippography
Copy link

chippography commented Feb 10, 2020

Issue when running gatsby build. I removed the blog section from the starter template, both in contents/ and in sidebars.js and in menuItems.js.

verbose running command: build
success open and validate gatsby-configs - 0.042 s
success load plugins - 1.313 s
(node:58796) [DEP0130] DeprecationWarning: Module.createRequireFromPath() is deprecated. Use Module.createRequire() instead.
success onPreInit - 0.006 s
success delete html and css files from previous builds - 0.011 s
success initialize cache - 0.037 s
success copy gatsby files - 0.113 s
success onPreBootstrap - 0.011 s
success source and transform nodes - 0.182 s
success Add explicit types - 0.012 s
success Add inferred types - 0.212 s
success Processing types - 0.147 s
success building schema - 0.575 s

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Expected type MarkdownRemarkFieldsEnum, found frontmatter___date. Did you mean the enum value frontmatter___title, frontmatter___sidebar, frontmatter___showTitle, or frontmatter___hideAnchor?

File: gatsby/createPages.js:10:10

⠋ createPages

@chippography
Copy link
Author

Ok, I think I figured out what was going on, the headers on my Markdown pages was missing the date field, including other fields.

Here's the complete set of the fields for the pages. It looks like they run optionally in the gatsby develop mode, but they are required in the build mode.

date: 2019-02-13
rootPage: /blah
title: Blah Blah Blah
sidebar: Blah
showTitle: false
hideAnchor: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant