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
When using "vite-plugin-top-level-await" and "vite-plugin-wasm" dependencies, importing the mermaid module causes an error in production builds.
Examplary error: "Uncaught (in promise) TypeError: o is not a function"
Description
When using "vite-plugin-top-level-await" and "vite-plugin-wasm" dependencies, importing the mermaid module causes an error in production builds.
Examplary error: "Uncaught (in promise) TypeError: o is not a function"
Steps to reproduce
mermaid_bug.zip
npm run build
and thennpm run preview
.Opening the site should display an empty page and log errors to console.
(
npm run dev
on the other hand shows what it should look like: a page with the text "foo")Screenshots
No response
Code Sample
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: