Closed adekunleoduye closed 5 years ago
It looks like you're using the react-docgen plugin too? Because of this, you actually have more MDX content than just the files that are on disk. react-docgen creates a set of markdown-content nodes and gatsby-mdx will process any node with the mediaType: text/markdown
.
You can structure your query from allFile
instead if you want to filter by the sourceInstanceName
of your gatsby-source-filesystem
, and use childMdx
on the File
node to get to the MDX content instead. This will restrict the query to only return values from the filesystem source.
@ChristopherBiscardi sounds good...thanks!
Describe the bug When dynamically creating pages from mdx files, the
node.frontmatter.path
is return asnull
.To Reproduce Repo: https://github.com/adekunleoduye/gatsby-issue When running
gatsby develop
I get the error below.What happened.
Environment
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Also, when exploring the query from
allMdx
, for some reason there are 8 results (supposed to be 1)