-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
[ERR_REQUIRE_ESM] with d3 on NextJS #61
Comments
Futhermore, I tried it along with the official guide to MDX-NextJS integration and got the same error as above. |
I guess, this is related: mermaid-js/mermaid#2677 |
This will be fixed by #18 and I am looking into getting this out in the next couple of weeks |
This is resolved with release |
Hi, @sjwall. Thank you for your work on this plugin. I tried to test your fix by installing relevant versions ( P.S. By any chance, would you entertain the idea of creating a PlantUML plugin for MDX / Docusaurus (a relevant repo that I found seems to be some unfinished work: https://github.com/TeamDaugherty/docusaurus-plantuml)? |
I am also seeing similar errors, possibly related to a different issue. "mdx-mermaid": "^2.0.0-rc1",
|
@ablekh @spenceradolph For Docusaurus and @mdxjs/mdx v1 use |
Describe the bug
It’s not possible to use mdx-mermaid in NextJS. Error is:
To Reproduce
Steps to reproduce the behaviour including how the file is processed:
npx create-next-app@latest
npm i mdx-mermaid mermaid
Expected behavior
Loading normally and showing graph.
Screenshots

Stack trace
Tool chain used:
NexJS latest, see steps to reproduce
The text was updated successfully, but these errors were encountered: