berry
berry copied to clipboard
[Bug?]: pnp + prettier + editor SDK crashes vscode
Self-service
- [ ] I'd be willing to implement a fix
Describe the bug
yarn pnp, with prettier and vite preset, crashes vscode's extension host consistently.
https://yarnpkg.com/getting-started/editor-sdks
To reproduce
- clone https://github.com/issues-repros/prettier-pnp-repro
- open it in code-insiders
- see extension host crashing
Environment
System:
OS: macOS 15.4.1
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 23.11.0 - /private/var/folders/k0/5cj98r7x29j30wk_zzpsrphr0000gn/T/xfs-a4a27a43/node
Yarn: 4.8.1 - /private/var/folders/k0/5cj98r7x29j30wk_zzpsrphr0000gn/T/xfs-a4a27a43/yarn
npm: 10.9.2 - /opt/homebrew/bin/npm
bun: 1.2.6 - ~/.bun/bin/bun
Additional context
to manually setup:
- yarn create vite
- select react + typescript preset
- add prettier
- setup vscode SDK