Closed dominikcz closed 1 year ago
the problem is the mermaid version not the vitepress version. see #24
OK, you are right and I can confirm that solution suggested in #24 (below) works... although I'd rather not have to use it
// docs/vite.config.ts or docs/vite.config.js
import { defineConfig } from "vite";
export default defineConfig({
resolve: {
alias: {
"mermaid": "mermaid/dist/mermaid.esm.mjs",
},
},
});
fixed in #32
As title says, when you use withMermaid() in your config.js like this:
and you run
you end up with an empty page and after some time (and 1530 requests) error in console:
with
npm run build
everything seems to work correctly