Issue
I am working through the Typescript intro at https://code.visualstudio.com/docs/languages/typescript
When I try to Run Build Task and choose tsc: build, VSCode attempts the following:
Executing task: tsc -p c:\work\JavascriptTypescript\test-apr-2018\tsconfig.json <
error TS5058: The specified path does not exist: 'c:workJavascriptTypescripttest-apr-2018tsconfig.json'.
The terminal process terminated with exit code: 1
It is trying to use the full path to the tsconfig.json file, and then stripping the slashes from that path. Obviously this isn't going to find the correct file.
If I manually issue tsc -p tsconfig.json from the command line, tsc works correctly.
This seems like a VSCode configuration error, but I am new to VSCode and don't know how to fix it.
Solution
This is a known issue (as of 2018-04-20) when using VSCode on Windows with Git Bash as a terminal. See https://github.com/Microsoft/vscode/issues/35593 .
Switching to CMD for a terminal is a workaround. So is invoking tsc manually as described above.
Answered By - Matt
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.