Mdx can't be configured with CRA Typescript project. #1992
Unanswered
mtajammulzia
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@mtajammulzia sorry you ran into a spot of trouble.
sounds like you have a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to configure mdx with my typescript react project but I can't seem to make it work, any help will be appreciated. Here is what I have done so far:
When I import my mdx file and render it as a component in jsx I get this error
Uncaught DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/blog.d7cd5950a0aaf4def22d.mdx') is not a valid name.
The above error occurred in the </static/media/blog.d7cd5950a0aaf4def22d.mdx> component:
The file I am importing is named as "blog.mdx".
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions