Skip to content

Cannot Resolve component specified in MDXProvider #2225

Answered by wooorm
gaurishhs asked this question in Q&A
Discussion options

You must be logged in to vote

hi!

  • You probably don’t need a provider. Pass the components directly.
  • You use jsxImportSource for @mdx-js/react. That is wrong. jsxImportSource is something different. A provider is not a JSX import source. If you use react, you don’t touch jsxImportSource. If you want a provider, you use providerImportSource: https://mdxjs.com/packages/mdx/#optionsproviderimportsource

Replies: 2 comments 19 replies

Comment options

You must be logged in to vote
6 replies
@wooorm
Comment options

@gaurishhs
Comment options

@wooorm
Comment options

@gaurishhs
Comment options

@wooorm
Comment options

Answer selected by gaurishhs
Comment options

You must be logged in to vote
13 replies
@gaurishhs
Comment options

@gaurishhs
Comment options

@wooorm
Comment options

@gaurishhs
Comment options

@wooorm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants