frontarm / mdx-util

Utilities for working with MDX
MIT License
710 stars 44 forks source link

mdx-loader not working with react-scripts@5.0.0 #97

Open thediveo opened 2 years ago

thediveo commented 2 years ago

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.

mzusev commented 2 years ago

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