Cursor ide typescript error detect

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After upgrading my React project from TypeScript 5 to TypeScript 6, Cursor no longer shows TypeScript errors in the editor in real time. Errors are only detected when running pnpm build (which runs tsc).

In contrast, VS Code correctly displays all TypeScript errors instantly using the TypeScript language service. This suggests Cursor is not properly syncing or running the TypeScript language server for the workspace after the upgrade.

Steps to Reproduce

Open a React project using TypeScript in Cursor
Upgrade TypeScript from v5 to v6 (pnpm add -D typescript@latest)
Introduce a TypeScript error (e.g. wrong prop type or invalid assignment)
Observe that Cursor does not display any TypeScript error in the editor
Run pnpm build (which executes tsc)
The TypeScript error appears only during the build step
Open the same project in VS Code → errors are displayed immediately

Expected Behavior

Cursor should display TypeScript errors in real time inside the editor using the TypeScript language service, just like VS Code. Any type errors should be highlighted immediately without needing to run pnpm build or tsc.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.4.20 (user setup)
VSCode Version: 1.105.1
Commit: 0cf8b06883f54e26bb4f0fb8647c9500ccb43310
Date: 2026-05-15T02:26:10.351Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

This issue is not new; it has been present for quite some time. I initially assumed it would be resolved over time, but it is still occurring.

It also does not affect only my setup—other developers I work with are experiencing the same behavior.

Hey, this isn’t a bug, it’s a version gap. Cursor 3.4.20 is based on VS Code 1.105.1, which ships with TypeScript 5.9.2. TS 6.0 support in the bundled TypeScript only showed up in VS Code 1.114, and Cursor hasn’t reached that base yet, so the built-in TS server doesn’t fully understand TS 6.0 in your project.

Workaround: switch the TS server to your project version.

  • Open the Command Palette with Ctrl+Shift+P
  • Run TypeScript: Select TypeScript Version
  • Pick Use Workspace Version

After that, Cursor will use TS 6.0 from your project’s node_modules instead of the bundled 5.9.2, and errors should show up in the editor like in VS Code. Once Cursor updates to a VS Code 1.114+ base, it should work out of the box.

Let me know if that helped.

Ah, that makes sense. I didn’t change anything in VS Code, and it was working there, so I understand the difference now.

Thank you for the clear explanation and the workaround — I’ll switch to the workspace TypeScript version. Appreciate the help!