Open SanoopM7 opened 1 year ago
Please try with mermaid@10.0.3-alpha.1
It doesn't work.
I have also encountered this problem and failed to fix this.
The issue is that mermaid uses an import from a .mjs file which is not recognized as an ESM bundle. You need to update your bundler, such as webpack, to support .mjs files.
https://stackoverflow.com/questions/71054449/cant-import-the-named-export-directive-from-non-ecmascript-module-only-defau https://stackoverflow.com/questions/64002604/how-to-make-create-react-app-support-mjs-files-with-webpack
Description
./node_modules/mermaid/dist/mermaid.core.mjs Can't import the named export 'l' from non EcmaScript module (only default export is available)
Steps to reproduce
while importing mermaid from mermaid got this error
Screenshots
No response
Code Sample
No response
Setup
Desktop
Smartphone
Additional Context
No response