emersonbottero / vitepress-plugin-mermaid

Add mermaid support for Vitepress
MIT License
95 stars 22 forks source link

What is the highest supported VitePress version? #19

Closed Charles7c closed 2 years ago

Charles7c commented 2 years ago

I am using version 1.0.0-alpha.15 and an error is reported.

  1. Install
  2. Add wrapper
  3. Use
  4. Run
  5. Error

    $ node collect-article-data.mjs && vitepress dev docs
    vitepress v1.0.0-alpha.15
    
    ➜  Local:   http://localhost:5173/
    ➜  Network: use --host to expose
    Failed to resolve import "mermaid" from "node_modules\vitepress-plugin-mermaid\dist\Mermaid.vue". Does the file exist?
    下午6:31:23 [vite] Internal server error: Failed to resolve import "mermaid" from "node_modules\vitepress-plugin-mermaid\dist\Mermaid.vue". Does the file exist?
    Plugin: vite:import-analysis
emersonbottero commented 2 years ago

Should work in all. It is a peer dependency and it should have installed the mermaid lib. depends in npm version and if you are using pnpm for example.

check if you can see mermaid in the node_modules.. if not you can install it and it should work.

Charles7c commented 2 years ago

Thank you very much, I am a backend developer, but also the first contact with the Mermaid.

Charles7c commented 2 years ago

Hopefully, the GitHub Pages 404 bug fix will be added when you document the FAQs. virtual modules are blocked in github pages