Questions tagged [gatsby-plugin-mdx]
40 questions
0
votes
1 answer
Gatsby.js issue with frontmatter in graphql
Looking for some help with this issue I have when trying to render the frontmatter for my project list. Essentially, it's not able to "detect frontmatter" nor "AllMdx", but when I query in graphql locally there is no issue. I get the information I…

Plewis
- 119
- 10
0
votes
1 answer
Any attempt to access props in MDX component results in failed build, but dev works just fine
I'm trying to get a single line of anything from passed by props to render.
If nothing is passed or needed, then the MDX render outs. If props are passed and tried to be used, failure.
The only thing left on this site is getting MDX to actually…

Matthew Hoth
- 13
- 3
0
votes
1 answer
When i was a GATSBY Build, i get 2 errors
This is my Gatsby Blog GitHub Link
When i work build i get 2 errors.
The field "Mdx.excerpt." was explicitly defined as non-nullable via the schema customization API (by yourself or a plugin/theme). This means that this field is not optional and…

fsk
- 219
- 2
- 14
0
votes
1 answer
Gatsby giving error on generating pages from markdown files
I am trying to generate pages from two categories of .md files [projects/posts] , I have combined the query related to both folders in a query as below in gatsby-node.js :
exports.createPage = ({ graphql, actions }) => {
const { createPage } =…

Bhupendra
- 1,196
- 16
- 39
0
votes
1 answer
Something went wrong and the query was left in the compiled code
Started learning Gatsby by following YouTube tutorial. I have followed each step as shown in the tutorial. So I am at the stage of creating post list page.
The post list page will have 3 posts and the other will be available through pagination. And…

tru_shar
- 107
- 2
- 11
0
votes
1 answer
GraphQL query complaints during page creation of DigitalGarden notes
I'm trying to learn how to build Digital Gardens in GatsbyJS by understanding the workings of Maggie Appleton's website (maggieappleton.com), which is an amazing website imo.
The mdx notes are sorted in different folders depending of their nature…

ThisIsaTriumph
- 1
- 2
0
votes
1 answer
Gatsby MDX slugs unnavigable, contain directory in name
Slugs created contain the root containing directory, thus passing slug to is broken.
The pages are created, but the slugs to link to them unnecessarily contain the containing folder, be it posts or pages.
Navigable pages are:
…

curtybear
- 1,458
- 2
- 20
- 39
0
votes
1 answer
Code blocks in mdx throw errors due to code parsing
I've recently converted my gatsby posts to use gatsby-plugin-mdx and for the most part, the transition has been seamless, however for a few of my posts I am running into an issue - namely that the code in code blocks is being parsed and the failing…

Designer023
- 1,902
- 1
- 26
- 43
-1
votes
1 answer
Generating pages in Gatsby from two sources of mdx files using graphql
Need help with GraphQL and Gatsby. Task: separate requests and page generation based on mdx, depending on where the file is located.
Simply put: I have a blog and news on the site. The content for the blog is in one folder, and for the news in the…

Tecnika
- 1
- 1
-1
votes
1 answer
Gatsby: How to insert data from frontmatter (Mdx file) into a component
I have a series of .mdx files that contain the same information but on different sites (ex: title="aswan"; title="rome" etc). These files are located in a folder called "metadata".
I need to insert mdx information into a component (OurSites.js)…

domizz
- 121
- 4