mdx-util icon indicating copy to clipboard operation
mdx-util copied to clipboard

mdx-loader not working with [email protected]

Open thediveo opened this issue 3 years ago • 1 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.

thediveo avatar Jan 08 '22 20:01 thediveo

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

mzusev avatar Jan 17 '22 16:01 mzusev