NOTE: 'runtime' is representing "import * as runtime from 'react/jsx-runtime'"
Place inline javascript within the react component return body, Exact code:
<div> {Content} </div>
Expected behavior
The MDX in a file I provided to the MDX package to compile and run to show up within the browser, along with imported components within the MDX file in question.
Actual behavior
Instead the content does not show up and the only hint of an error is the following error message within the browser console:
index-....js:86 SyntaxError: Cannot use import statement outside a module
at new AsyncFunction (<anonymous>)
at b0 ()
at index-....js:86:4700
Initial checklist
Affected packages and versions
@mdx-js/mdx
Link to runnable example
No response
Steps to reproduce
NOTE: 'runtime' is representing "import * as runtime from 'react/jsx-runtime'"
Expected behavior
The MDX in a file I provided to the MDX package to compile and run to show up within the browser, along with imported components within the MDX file in question.
Actual behavior
Instead the content does not show up and the only hint of an error is the following error message within the browser console:
Runtime
Node v19
Package manager
npm v9
OS
Linux
Build and bundle tools
Vite