Is it possible to do without ejecting?
Thanks for the quick response @timneutkens!
For anyone that finds this issue in the future:
yarn add --dev @mdx-js/loader @mdx-js/mdxAnd if you're using TypeScript, also:
Create an ambient file mdx.d.ts and include it in your tsconfig.json:
// mdx.d.ts
declare module '*.mdx' {
let MDXComponent: () => JSX.Element
export default MDXComponent
}
馃憤 馃憣 looks great
@bcherny do you have any updated url to the config-file?
https://github.com/mdx-js/mdx/blob/master/examples/create-react-app/config-overrides.js
@tornordqvist - The config-file is in the repo's history: https://github.com/mdx-js/mdx/blob/8469707ef5f0dcf3c0d56cf2793710916ef92c0c/examples/create-react-app/config-overrides.js
Most helpful comment
Thanks for the quick response @timneutkens!
For anyone that finds this issue in the future:
yarn add --dev @mdx-js/loader @mdx-js/mdxAnd if you're using TypeScript, also:
Create an ambient file mdx.d.ts and include it in your tsconfig.json: