Skip to content
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

tsconfig outDir parameter failing #11156

Closed
nitinet opened this issue Sep 26, 2016 · 7 comments
Closed

tsconfig outDir parameter failing #11156

nitinet opened this issue Sep 26, 2016 · 7 comments
Labels
Duplicate An existing issue was already created

Comments

@nitinet
Copy link

nitinet commented Sep 26, 2016

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.

TypeScript Version: 2.0.3

@mhegazy
Copy link
Contributor

mhegazy commented Sep 26, 2016

Can you share more information. Please share a self contained test along with the expected output, and the actual output.

@mhegazy mhegazy added the Needs More Info The issue still hasn't been fully clarified label Sep 26, 2016
@nitinet
Copy link
Author

nitinet commented 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
Copy link
Contributor

mhegazy commented Sep 30, 2016

The issue is with --outDir option in the tsconfig file

can you elaborate on how it is failing, what is the current output?

@nitinet
Copy link
Author

nitinet commented Oct 1, 2016

There is no output. Just that the javascript files are not getting generated from the ts files.

@tom-konda
Copy link

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
Copy link
Contributor

mhegazy commented Oct 18, 2016

Thanks @tom-konda for the repro. This looks like the same issue as #11621.

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.

@mhegazy mhegazy added Duplicate An existing issue was already created and removed Needs More Info The issue still hasn't been fully clarified labels Oct 18, 2016
@mhegazy mhegazy closed this as completed Oct 18, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Oct 18, 2016

I have also filed #11156 to track raising an error when no files are found to compile.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants