dagre-d3-es doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
SyntaxError: Named export 'addHtmlLabel' not found. The requested module 'dagre-d3-es/src/dagre-js/label/add-html-label.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
dagre-d3-es doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
Error found in https://github.com/mermaid-js/mermaid-live-editor/pull/1119
Another error