You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since i updated the typescript compiler, my tsc wasn't working. I experimented and as soon as i remove outDir parameter from compiler options in tsconfig.config file, it is now working.
The issue is with --outDir option in the tsconfig file. When i removed the option, now its working fine. I didn't got down deeper. Please let me know if more info is needed.
I have a similar problem on TypeScript 2.0.3.
I specified outDir parameter end with "../" but tsc command didn't generate any .js files.
When I run same command on TypeScript 1.8.10, .js files were generated successfully.
If you do not have exclude property set, it is implicitly set to ["node_modules", .., <outdir>]. since your outDir is a parent directory of your source directory, no files are included in the compilation.
to override this behavior specify empty exclude array.
Activity
mhegazy commentedon Sep 26, 2016
Can you share more information. Please share a self contained test along with the expected output, and the actual output.
nitinet commentedon Sep 30, 2016
The issue is with --outDir option in the tsconfig file. When i removed the option, now its working fine. I didn't got down deeper. Please let me know if more info is needed.
mhegazy commentedon Sep 30, 2016
can you elaborate on how it is failing, what is the current output?
nitinet commentedon Oct 1, 2016
There is no output. Just that the javascript files are not getting generated from the ts files.
tom-konda commentedon Oct 7, 2016
I have a similar problem on TypeScript 2.0.3.
I specified outDir parameter end with "../" but tsc command didn't generate any .js files.
When I run same command on TypeScript 1.8.10, .js files were generated successfully.
I tested on this gist files.
mhegazy commentedon Oct 18, 2016
Thanks Tom Konda (@tom-konda) for the repro. This looks like the same issue as #11621.
If you do not have
excludeproperty set, it is implicitly set to["node_modules", .., <outdir>]. since youroutDiris a parent directory of your source directory, no files are included in the compilation.to override this behavior specify empty
excludearray.mhegazy commentedon Oct 18, 2016
I have also filed #11156 to track raising an error when no files are found to compile.