Closed clabnet closed 5 months ago
Are you using pnpm? Use it with shamefully-hoist. It works fine with npm -
https://stackblitz.com/edit/vite-ny7pvh?file=docs%2F.vitepress%2Fconfig.ts,docs%2Findex.md
Thank you @brc-dd, you are right.
Adding shamefully-hoist=true
to .npmrc
the issue was resolved.
Or elsewhere are need to install these dependencies :
"@braintree/sanitize-url": "^7.0.2",
"cytoscape": "^3.29.2",
"cytoscape-cose-bilkent": "^4.1.0",
"dayjs": "^1.11.11",
"debug": "^4.3.4",
Hi everyone,
I faced similar issues and found that using public-hoist-pattern provided a more controlled solution. Here’s what worked for me:
.npmrc
public-hoist-pattern[]=@braintree/sanitize-url
public-hoist-pattern[]=cytoscape
public-hoist-pattern[]=cytoscape-cose-bilkent
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*prettier*
This setup ensures that only necessary dependencies are hoisted, avoiding broader conflicts. Hope this helps!
Hi,
I still using
vitepress-plugin-mermaid 2.0.16
withmermaid 10.9.1
,vitepress 1.2.2
andvue 3.4.27
with this codeWhen I use this
.vitepress\config.ts
the vitepress page is not open, with this error on console :
When I use this
.vitepress\config.ts
the diagram is not rendered, the result is :
I'm still missing any things ?