Closed aeyll-11 closed 1 year ago
defineConfig is not needed if you're using withMermaid
@brc-dd Why do the repository use it that way then? https://github.com/emersonbottero/vitepress-plugin-mermaid/blob/main/docs/.vitepress/config.js
That's probably to provide hints for theme part. But which vitepress version are you on? It doesn't use UserConfigExport
for defineConfig.
I use "vitepress": "^1.0.0-beta.2" line 41 https://github.com/vuejs/vitepress/blob/main/src/node/config.ts
That is just exported no longer used by defineConfig or anything. And IIRC beta 2 was the only version having that. Update your version to rc or something.
Thanks for the answer mate @brc-dd
Hello, I encountered this type error while employing defineConfig within the context of withMermaid.
defineConfig in Vitepress yields UserConfigExport rather than a UserConfig