-
Notifications
You must be signed in to change notification settings - Fork 44
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
Need to upgrade to v1 of "@mdx-js/mdx" to render JSX mid-line #47
Comments
Ouch... but then this breaks something else. 😞 The files all load fine, front matter and everything comes through with the updated updated Using my experimental updated forked version of mdx-loader:
Error Message:
|
I haven't been keeping up with API changes lately, but looking at the error, it looks like you'll need to change the existing imports from: import { MDXTag } from '@mdx-js/tag' https://github.com/adueck/updated-mdx-loader/blob/master/index.js#L48 to something that imports an If you can get this working I'm more than happy to merge it! |
@jamesknelson Hmm, looking back the error message I gave may have been misleading: I clicked the 'view compiled' button below the red error message from webpack, and got that. The actual error message as it first comes was: This might be over my level to get this working... It would be really, really wonderful if this package could be updated to work with the new stable mdx (and mid-markdown JSX), because as you explained so well here there's nothing quite like this out there! 🙇 Thanks for your super helpful work! |
The issue seems to be that with v1 of given a markdown file of:
using @mdx-js/mdx v 0.16.0
And using the new @mdx-js/mdx v. 1.0.20
So how to adjust things so that this new |
Ok I figured it out! 😄 With the new
Now with my updated PR it works great. 👍 |
Currently JSX does not work in the middle of components with
mdx-loader
, because it is using an old version of@mdx-js/mdx
.This works
But this doesn't, it breaks the build 😢
This should be supported with mdx version 1
Upgrading to v1 of
@mdx-js/mdx
will fix this.The text was updated successfully, but these errors were encountered: