I have been facing a frustrating issue with the TSC Typescript compiler. No matter what I try, I cannot seem to make it find any files. I have experimented with both the tsc provided by the Visual Studio Extension and the one from npm. I've attempted running it in the Node.js command line window as well as the Git Bash shell, but to no avail. The error message always states that the file is not found. I am aware that the compiler should work for .ts and .str files, yet this does not appear to be the root cause of the problem.
Let me illustrate the situation I am encountering with a brief example. While I understand these files are likely empty placeholders, my attempts with actual code files have yielded the same outcome.
C:\>touch test.ts
C:\>ls *.ts
test.ts
C:\>tsc test.ts
Error reading file "test.ts": File not found
C:\>tsc C:\test.ts
Error reading file "C:\test.ts": File not found
C:\>touch test.str
C:\>tsc test.str
Error reading file "test.str": File not found
C:\>tsc ./test.str
Error reading file "./test.str": File not found
C:\>tsc ./test.ts
Error reading file "./test.ts": File not found
C:\>touch test.js.ts
C:\>tsc test.ts
Error reading file "test.ts": File not found
C:\>tsc test.js
Error reading file "test.js": File not found