mdx-util
mdx-util copied to clipboard
mdx-loader not working with [email protected]
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