Can we get some more guidance/docs on the recent development runtime change in 2.2? #2203
-
The upgrade from 2.1 to 2.2 broke all of my MDX content with a frustrating error:
Looking into what changed, it seems this is related to #2045 by @remcohaszing Now I don't pretend to understand all the intricate details, but what I do know is:
I appreciate that this was debated as being a non-breaking change so maybe I'm doing something dumb which is why it breaks for me. But it would be nice to get some insight into what's going on and why In my code, I'm doing what's documented under MDX on demand: https://mdxjs.com/guides/mdx-on-demand/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
In case other people struggle with this, this is the current workaround I have put in place: import { run } from '@mdx-js/mdx'
import * as runtime from 'react/jsx-runtime'
// ...
await run(mdx, { ...runtime, jsxDEV: runtime.jsx }) But I'd like to understand rather than work around this issue. |
Beta Was this translation helpful? Give feedback.
In case other people struggle with this, this is the current workaround I have put in place:
But I'd like to understand rather than work around this issue.