-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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 --watch is inconsistently reporting node_modules files as being outside rootDir #19327
Comments
This actually looks like a duplicate/side-effect of #19290 |
@Kovensky can u share your project? |
@kovensky apart from the project, can you please let us know if node_modules folder is at root folder like c:/ or /user/username. That might help us investigate this further. |
The change can be as simple as adding a newline to the end of the file. I can't seem to get it to not happen anymore. In this example, I started a build with
The output directory structure is also strange. With |
…directory in watch mode Test case for #19327
@Kovensky Thank you for the information.. I did some experimentation based on error you are getting and directory structure you mentioned and i have found a repro for this (ab67477). I am working on the fix |
… existing program structure This marks files reused correctly as from external library resulting in not using them for files to be emitted and computed for output structure Fixes #19327
…directory in watch mode Test case for #19327
… existing program structure This marks files reused correctly as from external library resulting in not using them for files to be emitted and computed for output structure Fixes #19327
@Kovensky can you give tomorrow's |
TypeScript Version: 2.6.0-rc
Code
With a directory layout like:
Expected behavior:
Compilation with no errors (other than findCacheDir not used if the option is enabled)
Actual behavior:
Intermittent error TS6059 whenever the file is edited. The error occasionally goes away or returns whenever a build is triggered by
--watch
.If there are multiple files in the project almost all of them will produce errors for the things they are importing from node modules. But only sometimes 😕
The text was updated successfully, but these errors were encountered: