Closed glennsc closed 1 year ago
Is not .vitepress.config.js It should be .vitepress/config.js
My apologies, that was just a typo when I wrote the issue. Yes, my file is in .vitepress/config.js
I created a minimal Vitepress install, and added the mermaid plugin per the docs, and still get the same error.
try the solution mention here
Okay, yes. Dropping a vite.config.js
into docs
with:
export default {
optimizeDeps: { include: ['moment-mini', '@braintree/sanitize-url'] },
}
and then
pnpm add moment-mini @braintree/sanitize-url -D
stopped the errors throwing in dev. I see mermaid merged your PR fixing this so I assume we'll be able to remove this workaround soon. Really appreciate your help, and love this plugin.
docs:dev
nothing renders and and I get the following error in the browser console:My
.vitepress.config.js
looks like this:Package.json:
Anything obvious I'm doing wrong?