Error: Error during dependency optimization:
Build failed with 5 errors:
[MISSING_EXPORT] Error: "default" is not exported by "node_modules/.pnpm/roughjs@4.5.2/node_modules/roughjs/bundled/rough.js".
╭─[ node_modules/.pnpm/@visactor+vrender-kits@1.0.21/node_modules/@visactor/vrender-kits/es/render/contributions/rough/rough-arc.js:15:8 ]
│
15 │ import rough from "roughjs";
│ ──┬──
│ ╰──── Missing export
────╯
Node.js v24.4.0
- OS: Windows 10 21H2
- Browser: Chrome 134.0.6998.36(正式版本) (64 位)
- Framework: Vue@3.5.16
- Build Tool: rolldown-vite@7
Version
1.22.2
Link to Minimal Reproduction
https://codesandbox.io/p/live/e3f41b14-7963-4ba8-8e63-8ce09d97a5ad
Steps to Reproduce
"vite": "npm:rolldown-vite@7"Current Behavior
Expected Behavior
顺利运行
Environment
Any additional comments?
No response