-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Version 9.4.0 - SyntaxError: Named export 'o' not found. The requested module './mermaid.95cd9c8e.js' is a CommonJS module, ... #4100
Comments
@olayway Can you please try [email protected] ? |
@sidharthv96 Same issue for 9.4.2-rc.1. See below... |
10.0.0-rc.3 is explicitly marked as ESM. Can you try that? Changes needed for v10: mermaid-js/mermaid-live-editor@bbd6378 |
That worked. Thank you @sidharthv96 ! |
@olayway @veenified can you please test if [email protected] works for you? |
I can confirm that this fix worked on a Flowershow site i.e. To add (2h later): that said, i then had this issue which i could resolve by removing mermaid (
Downgrading to v9.3.0 worked. |
Resolves this issue mermaid-js/mermaid#4100
Fixing build failures - see mermaid-js/mermaid#4100.
I had the same problem. |
Description
When switching from mermaid version
9.3.0
to9.4.0
in my Next.js app, the error below shows up:The app uses Contentlayer to convert MD into JSON files.
mermaid
is a dependency of the@flowershow/core
package used in the app. The version specified there is^9.3.0
, so both9.3.0
and9.4.0
can be installed.Steps to reproduce
npm i && npm run dev
-> now everything workspackage.json
file and change the mermaid version inoverrides
to 9.4.0, like so:npm run dev
again -> 💥Screenshots
No response
Code Sample
No response
Setup
Desktop
Additional Context
No response
The text was updated successfully, but these errors were encountered: