Fix mermaid in docusaurus
· One min read
How to fix
In .yarnrc.yml file change nodeLinker from pnpm to node-modules
nodeLinker: node-modules
pnpMode: strict
yarnPath: .yarn/releases/yarn-4.9.2.cjs
Reference:
Mermaid plugin breaks the document project when Yarn v4 is used and PnP is enabled