Skip to content

MDXProvider integration problem when using CRA 5 (React 18) with CRACO #2217

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

You must be logged in to vote

a) You don’t need the provider: pass your components to the MDX content component
b) As you notice, CRA/CRACO have a bunch of problems with ESM, perhaps they just don‘t work.
c) you’re using a bunch of anys, which defeats the purpose of TypeScript, I recommend using the types that MDX ships: https://mdxjs.com/docs/getting-started/#types
d) if many things don’t work, that could also signal that CRA(CO) doesn’t support webpack 5, which I think our loader needs.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thediveo
Comment options

You must be logged in to vote
0 replies
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