How to suppress "Expected component to be defined"? #2402
Unanswered
hahnbeelee
asked this question in
Q&A
Replies: 1 comment 13 replies
-
|
Beta Was this translation helpful? Give feedback.
13 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.
-
My goal is to convert an MDX string to a React string. By following this thread, I have created this function
Unfortunately when I put in a string like
"<RandomComponent>child</RandomComponent>"
it throws an errorError: Expected component
RandomComponentto be defined: you likely forgot to import, pass, or provide it.
.All I want is to go from an mdx string to a react string. Is there anyway I can suppress this error? I read the options here but I wasn't able to draw any conclusions.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions