Troubeshooting

Please search existing or open a new Github issue if you run into any problems.

Dependencies/modules

If you run into Cannot find package... errors, try adding the missing dependencies with the exact version.

"dependencies":{
    "mdx-bundler": "^10.0.1"
    "esbuild": "^0.19.11",
     // other deps
    "mdast-util-mdx": "3.0.0",
    "mdast-util-to-markdown": "2.1.0",
    "mdast-util-mdx-expression": "2.0.0",
}

Next.JS esbuild ENOENT

Cannot find module ..\components\ReactComponent

If you run into import issues, try using the exports of '.

import { getMDXComponent } from 'mdx-bundler/client';

// ...

const Component = getMDXComponent(code);

return <Component components={mdxComponents} />;