# Cursor ide typescript error detect

**URL:** <https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243>\
**Category:** Bug Reports\
**Tags:** language-servers, typescript\
**Created:** [May 21, 2026, 3:05pm UTC](https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243 "2026-05-21T15:05:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benzazoua](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benzazoua/32/109302_2.png) [@Benzazoua](https://forum.cursor.com/u/Benzazoua)\
**Post date:** [May 21, 2026, 3:05pm UTC](https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243/1 "2026-05-21T15:05:37Z")

</div>

### 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

 ![Screenshot 2026-05-21 160313.png](https://us1.discourse-cdn.com/cursor1/original/3X/5/1/5196128180f5c6d066331e2c52fda1371dbba35f.png)

### 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

---

<div class="post-metadata">

**Author:** ![Benzazoua](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benzazoua/32/109302_2.png) [@Benzazoua](https://forum.cursor.com/u/Benzazoua)\
**Post date:** [May 21, 2026, 3:11pm UTC](https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243/3 "2026-05-21T15:11:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 21, 2026, 3:44pm UTC](https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243/6 "2026-05-21T15:44:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Benzazoua](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benzazoua/32/109302_2.png) [@Benzazoua](https://forum.cursor.com/u/Benzazoua)\
**Post date:** [May 21, 2026, 3:59pm UTC](https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243/7 "2026-05-21T15:59:56Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 23, 2026, 4:00pm UTC](https://forum.cursor.com/t/cursor-ide-typescript-error-detect/161243/8 "2026-05-23T16:00:19Z")

</div>

Closed on May 23, 2026, 4:00pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
