visual studio code – VSCode: Doesn’t show inline TypeScript errors in my Next.js project until build time
I have a Next.js app and I can’t get VSCode to show inline TypeScript errors (like unused variables or invalid types) while coding. Errors only appear when I run a build (npx tsc or next build).
For example:
Errors are in my code, but not visible right away
A few observations and screenshots from my setup:
Built-in is enabled:
Built-in is enabled
VS Code is reporting ‘partial mode:
Partial mode shown
Project root tsconfig:
Project root tsconfig
Really at a loss here as to how to fix this. Thank you
Things I tried:
Restarted VSCode / Mac
Asked Copilot to check my TS config
Restarted TS Server
Disabled/Re-eneabled @built-in
Searched settings for anything relevant
Read more here: Source link
