You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have follow all the documented steps and gets the following error on npm run develop
Error:
[ { GraphQLError: Cannot query field "name" on type "frontmatter".
message: 'Cannot query field "name" on type "frontmatter".',
locations: [ [Object] ],
path: undefined
},
{ GraphQLError: Cannot query field "menu" on type "frontmatter".
message: 'Cannot query field "menu" on type "frontmatter".',
locations: [ [Object] ],
path: undefined
} ]
You have to add frontmatter to your MDX files. It's where the theme derives the page/component title from, as well as the category/menu it's grouped under in the sidebar.
From the README:
In order for your component data to show up, you need an MDX file for the component - and the page name and component name in the docblock need to match.
/**
* ComponentTitle
**/
class ComponentName extends React.Component {}
I have follow all the documented steps and gets the following error on
npm run develop
Error:
And this:
My debug-log:
Is there a minimum node version required for this?
Thanks!
The text was updated successfully, but these errors were encountered: