-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsc --noEmit does not detect issues in react-ts template #17585
Comments
Probably just repeating OP here, but the same holds for those of us using |
Thanks that does the trick!
I agree, having a root tsconfig with no included files and then 2 tsconfigs both marked with no emit takes a bit of getting used to. That being said I'm not super familiar with this stuff so that might just be me. |
Closing this as the issue is of the missing |
Describe the bug
After adding type errors in project
tsc
not showing any errors when run (npx tsc -w) inreact-ts
template.Reproduction
https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts
Steps to reproduce
src/main.tsx
and addconst a: string = 2
somewherenpx tsc --noEmit
tsc will say there is no issue (when it should be complaining about the line we just added
System Info
Used Package Manager
npm
Logs
~/projects/vitejs-vite-whkhm3 2s
❯ npx tsc --noEmit
^ there is no output
Validations
The text was updated successfully, but these errors were encountered: