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
I was unable to get mermaid imports working in a svelte/kit webapp until I changed main in package.json to point to dist/mermaid.js instead of the current default of dist/mermaid.core.js
This change set on develop is working for me: d3fend@426d9f3
I am sure you point main to dist/mermaid.core.js for a reason, but, probably due to my ignorance, it was not obvious to me. Hopefully this helps someone else who might run into this issue.
I am using all the latest version of svelte-kit, vite, and mermaid (develop branch as of today).
"@sveltejs/kit": "next",
"vite": "^2.9.0"
(I am a bit new to the javascript packaging ecosystem)
The text was updated successfully, but these errors were encountered:
Thank you. To clarify, I was able to get it to work with simple change I linked to, I was just wondering why this change was not already present in mermaid.
I was unable to get mermaid imports working in a svelte/kit webapp until I changed
main
inpackage.json
to point todist/mermaid.js
instead of the current default ofdist/mermaid.core.js
This change set on develop is working for me: d3fend@426d9f3
I am sure you point main to
dist/mermaid.core.js
for a reason, but, probably due to my ignorance, it was not obvious to me. Hopefully this helps someone else who might run into this issue.I am using all the latest version of svelte-kit, vite, and mermaid (develop branch as of today).
(I am a bit new to the javascript packaging ecosystem)
The text was updated successfully, but these errors were encountered: