frontarm / mdx-util

Utilities for working with MDX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mdx-loader not working with react-scripts@5.0.0

thediveo opened this issue · comments

After updating an existing React app lxkns to react-scripts 5.0.0 the documented method of using mdx-loader with babel-loader

import AboutMDX from "!babel-loader!mdx-loader!./About.mdx"

does not work anymore. AboutMDX contains a string which is the path name to the Javascript file compiled from the .mdx source, but not the required React component or function.

Yup, having the same issue here. Had to downgrade react-scripts to 4.0.3