Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdx-loader not working with [email protected] #97

Open
thediveo opened this issue Jan 8, 2022 · 1 comment
Open

mdx-loader not working with [email protected] #97

thediveo opened this issue Jan 8, 2022 · 1 comment

Comments

@thediveo
Copy link

thediveo commented Jan 8, 2022

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
Copy link

mzusev commented Jan 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants