[Bug] Sharp module win32-x64 binary missing in Cursor extension, breaks image upload on Windows
Resolved 💬 2 comments Opened Mar 12, 2026 by jagnani73 Closed Apr 9, 2026
Bug Description
Image upload broken on Windows in the Cursor extension (anthropic.claude-code-*-universal). The sharp module's win32-x64 binary is not bundled, causing Could not load the "sharp" module using the win32-x64 runtime on image paste/upload. Workaround: npm install --os=win32 --cpu=x64 sharp in the extension directory, but this is wiped on every extension update.
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.1.73
- Feedback ID: 4a268657-8dd1-4559-a249-c583916589af
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir '/mnt/c/Users'\n at readdirSync (unknown)\n at readdirSync (B:/~BUN/root/src/entrypoints/cli.js:12:3271)\n at x6_ (B:/~BUN/root/src/entrypoints/cli.js:6843:1914)\n at C6_ (B:/~BUN/root/src/entrypoints/cli.js:5176:43)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-12T08:22:10.242Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:410:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-12T08:41:55.477Z"},{"error":"$K_: Diagnostics file path mismatch: expected C:\\Users\\yashj\\.local\\bin\\python3, got file://c:\\users\\yashj\\.local\\bin\\python3/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:6209:47127)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-12T08:47:10.332Z"},{"error":"TelemetrySafeError: Tab close: Invalid tab not found!\n at eq_ (B:/~BUN/root/src/entrypoints/cli.js:6209:26837)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-12T08:47:10.392Z"},{"error":"$K_: Diagnostics file path mismatch: expected C:\\Users\\yashj\\.claude\\projects\\D--Work\\memory\\MEMORY.md, got file://c:\\users\\yashj\\.claude\\projects\\d--work\\memory\\memory.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:6209:47127)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-12T08:47:43.312Z"},{"error":"$K_: Diagnostics file path mismatch: expected C:\\Users\\yashj\\.claude\\projects\\D--Work\\memory\\MEMORY.md, got file://c:\\users\\yashj\\.claude\\projects\\d--work\\memory\\memory.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:6209:47127)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-12T08:51:59.717Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗