You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Export and sharing as SVG is broken for a diagram with the following error:
MermaidError: Cannot destructure property 'config' of 'undefined' as it is undefined. addVertex (file:///prod/mermaid-pre-render-server/node_modules/.pnpm/@mermaid-js+mermaid-cli@11.4.0_patch_hash=taxes6pgqytvd5wk2gq6oq35qe_puppeteer@23.8.0_typescript@5.6.3_/node_modules/@mermaid-js/mermaid-cli/dist/index.html:1046:1345)
When I remove the layout: elk line in the config, the diagram renders (albeit in a layout I don't want).
Seems like the elk layout works in the editor but breaks when exporting/sharing.
Describe the bug
Export and sharing as SVG is broken for a diagram with the following error:
To Reproduce
Go to the following public SVG diagram to see the error:
https://www.mermaidchart.com/raw/61fb7f6a-9a7c-4eed-bd0c-ac0875eeca81?theme=light&version=v0.1&format=svg
Here's the diagram source:
Expected behavior
SVG representation of the diagram.
Additional context
Renders fine in the editor.
The text was updated successfully, but these errors were encountered: