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

error TS5042: Option 'project' cannot be mixed with source files on a command line. #13575

Closed
ORESoftware opened this issue Jan 19, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@ORESoftware
Copy link

ORESoftware commented Jan 19, 2017

On latest version of TS -

I am calling tsc like so:

 shell.stdin.write('tsc --jsx react --project tsconfig-fe.json ' + path + '\n');

I get an error saying:

error TS5042: Option 'project' cannot be mixed with source files on a command line.

this seems like an unncessary error. I would really like to be able to specify which tsconfig file to use ( I use one for backend and a different one for frontend ).

Is there any workaround for this besides taking all the settings from my tsconfig and putting them on the command line?

@LucienLee
Copy link

I would like check my staged files with path resolution, which I need to pass source files and paths from cli. However, the paths options only can assign from tsconfig.json instead of passing from cli. Hence, I really need mix source files and project options.

@RyanCavanaugh RyanCavanaugh added Duplicate An existing issue was already created and removed In Discussion Not yet reached consensus Suggestion An idea for TypeScript labels Aug 22, 2018
@RyanCavanaugh
Copy link
Member

Tracking at #12958

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants