-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Typescript compile error in tasks.json #140
Comments
Hi Gaurav, |
Hi Greg! Sorry the discrepancy between @gregvanl My point is as @mhegazy says in microsoft/TypeScript#6591 if we pass |
@gregvanl the example works fine. Since However, what is somewhat confusing is that the doc introduces the I suggest to mention that when your project has a tsconfig.json then do not pass the file name as an argument. Since tsc will takes this information from the tsconfig.json. |
When removing the param then example is no longer self contained since it then depends on a tsconfig.json. This would be fine when the doc also includes the corresponding tsconfig.json. In this case the tsconfig.json would be empty since no compiler option needs to defined, which I don't like. So I suggest to make the example more interesting let's make the example a very simple node example so that the tsconfig.json includes the |
@egamma Yeah, you are right! There can be users who don't have a |
Yes we should link to the tsconfig.json doc from TypeScript and not duplicate it.https://github.com/Microsoft/TypeScript/wiki/tsconfig.json Actually, this is already done in the section above,
but repeating it doesn't hurt |
According to https://github.com/Microsoft/vscode-docs/blob/master/docs/languages/typescript.md#tsconfigjson
But VSCode stops compiling TypeScript as per default instructions. The
args
parameter causes the issueWhen I remove
args
everything is working! This is because the fileName is being supplied totsc
as a command line argument and it ignorestsconfig.json
.Refer to microsoft/TypeScript#6591
On the other hand, supplying no parameters, compiles all the files given in my
tsconfig.json
. I am using tsc v 1.7.5Can i open a PR for this if you can verify the error?
The text was updated successfully, but these errors were encountered: