-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Stale errors in watch mode #25068
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
Comments
I am not seeing this on |
I'm using the version that was installed with @next this morning (as stated in the initial post). Don't know if this matters, but I'm on Windows 10 and it doesn't matter what program I use to save files (vscode/np++/notepad) When I omit the noEmit flag, the files are getting updated, but the error is not. |
I think there is something else going on.. here is what i am seeing... do you have other @types in your node_modules? |
Oh wow, update: When updating the second parameter, it is working. When updating the first, it's not. Ah nvm. It is not working on your site either. You only get the error from |
…ed to emit declarations for watch mode Fixes #25068
Hello everyone!
I'm not quite sure that this is really a bug or if I am missing a simple configuration option but I googled for 1.5 hours and came up with nothing:
TypeScript Version: 3.0.0-dev.20180619
Search Terms: Stale error, watch mode, saved file, closed file
Code
File a.ts:
File b.ts:
tsconfig.json:
Expected behavior:
When running
tsc
on console, everything is fine. When one of the parameter types inb.ts
is changed tostring
, the running compiler (in watch mode) should now show an error, becuasetest
is called with 2 numbers.Actual behavior:
Errors only show up when compiler is restarted or when a.ts is saved.
Playground Link: https://github.com/andreasgruenh/typescript-watch
Related Issues: #21325 sounds similar but was fixed according to comments.
The text was updated successfully, but these errors were encountered: