Having issues with MDXRenderer #38911
Replies: 1 comment
-
Hello Marco, first, what is your packages and Gatsby versions ? Could you share your Then, when I try to test your GraphQL query, with up-to-date gatsby & mdx plugin versions, the query fails with this message : You should use another filter to query your data. {
mdx(frontmatter: {slug: {eq: "about"}}) {
body
frontmatter {
title
}
}
} Have you try to run your query in GraphiQL, does it run ? Not on my machine ! Arthur. |
Beta Was this translation helpful? Give feedback.
-
Don't really know what's going on. I'm trying to display some data from an MDX file "about.mdx" but I'm running into an error with MDXRenderer. If i replace the MDXRenderer tag with something else, the data displays fine; but the moment MDXRenderer is in the mix it breaks and gives me a run time error:
"Error in function createFiberFromTypeAndProps in ./node_modules/react-dom/cjs/react-dom.development.js:28439
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of
AboutPage
."Here's my code. I have no idea what's going on. I have my gatsby-config file configured fine, here it is.
This is also the first time I've ever reached out for help over github, so please let me know if you need more information. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions