-
When we use a component inside mdx file and it is not inject by MDXProvider, an error will be throw and page crash. Is there a way to provider a fallback render method or add error boundary for this missing component? This component is not pass to MDXProvider
<Button /> Uncaught Error: Expected component `Button` to be defined: you likely forgot to import, pass, or provide it. |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Nov 9, 2022
Replies: 1 comment
-
The framework you use likely has support for this. Assuming React, it has error boundaries: https://reactjs.org/docs/error-boundaries.html. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The framework you use likely has support for this. Assuming React, it has error boundaries: https://reactjs.org/docs/error-boundaries.html.