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: tsc.exe exited with code 2 - for ASP.NET CORE only #10702

Closed
ElVisPL opened this issue Sep 4, 2016 · 7 comments
Closed

Error: tsc.exe exited with code 2 - for ASP.NET CORE only #10702

ElVisPL opened this issue Sep 4, 2016 · 7 comments
Assignees
Labels
Bug A bug in TypeScript Visual Studio Integration with Visual Studio

Comments

@ElVisPL
Copy link

ElVisPL commented Sep 4, 2016

I try to run angular quickstart template under asp.net core project
https://github.com/angular/quickstart

When I build application I get MSB6006: "tsc.exe" exited with code 2.
From output I've got detailed problem info:

1> Unknown output: Cannot open file 'E:\Projekty\core\src\core\wwwroot\node_modules\browser-sync\node_modules\rx\ts\core\linq\observable\mergeproto.ts'.
1> Unknown output: Cannot open file 'E:\Projekty\core\src\core\wwwroot\node_modules\browser-sync\node_modules\rx\ts\core\linq\observable\zipproto.ts'.
1> E:\Projekty\core\src\core\error TS6053:Build:File 'E:/Projekty/core/src/core/wwwroot/node_modules/browser-sync/node_modules/rx/ts/core/linq/observable/mergeproto.ts' not found.
1> E:\Projekty\core\src\core\error TS6053:Build:File 'E:/Projekty/core/src/core/wwwroot/node_modules/browser-sync/node_modules/rx/ts/core/linq/observable/zipproto.ts' not found.

The problem occurrs only for ASP.NET Core Project, it works fine for standard ASP.NET project. I use VS 2015 Update 3.
Do you know what can be a problem here

@jberent
Copy link

jberent commented Oct 2, 2016

I'm getting it in one standard ASP.NET, but not another (VS 2105 Update 3) -- the file doesn't exist in either.

@ElVisPL
Copy link
Author

ElVisPL commented Oct 2, 2016

Ok, it happens only when front-end app files are in subdirectory like "wwwroot" or something like this. Moving it all outside resolved problem...

@jberent
Copy link

jberent commented Oct 2, 2016

Exclude 'node_modules' from project, VsTsc task won't execute on all those tsconfigs -- ( I think -- VS goes into endless hourglass mode when I try to exclude folder from project, so I can't confirm yet -- so now I have a real VS issue discovered from a non-issue. ) Manually deleted all the node_modules from csproj, errors are gone.

@Muaadeeb
Copy link

Muaadeeb commented Oct 6, 2016

VS keep locking up on me when I attempted to exclude from project. So I deleted it instead from Solution Explorer and then went to the command prompt and did npm install to reinstall all dependencies. That re-added it to my base project file structure without making it part of my project.

The error went away and my angular app works great now.

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label May 24, 2017
@SGeorge007
Copy link

I got the similar issue in VS2015 solution, .net 4.5.
Has anyone got the resolution, i see the issue is still open.
Error:

Severity Code Description Project File Line Suppression State
Error The command ""tsc" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipApplication.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipCompanies.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipModels.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipMyProfileViewEdit.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipRole.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipUserModal.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\RowOption.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\SessionTimeOut.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\ResourceHelper.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\typings\angularjs\angular-route.d.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Areas\Membership\Scripts\MembershipUser.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\AngAppBaseSearch.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\typings\jquery.cookie\jquery.cookie.d.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\configuration.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\typings\jqueryui\jqueryui.d.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts\typings\jquery\jquery.d.ts" "D:\Projects\MultiTenantDesign\MVC5WebTemplate\Scripts_Layout.ts"" exited with code 2. MVC4WebTemplate D:\Projects\MultiTenantDesign\MVC5WebTemplate\MVC4WebTemplate.csproj 1037

@mhegazy mhegazy added Bug A bug in TypeScript and removed Needs Investigation This issue needs a team member to investigate its status. labels Oct 26, 2017
@mhegazy mhegazy added the Visual Studio Integration with Visual Studio label Oct 26, 2017
@mhegazy mhegazy added this to the TypeScript 2.7 milestone Oct 26, 2017
@mhegazy mhegazy modified the milestones: TypeScript 2.7, TypeScript 2.8 Jan 9, 2018
@mhegazy mhegazy modified the milestones: TypeScript 2.8, TypeScript 2.9 Mar 9, 2018
@minestarks
Copy link
Member

@SGeorge007 are you still having this issue? Do you have a build log you can share? Thanks.

@minestarks
Copy link
Member

Closing until we can get an up-to-date repro with more details.

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Visual Studio Integration with Visual Studio
Projects
None yet
Development

No branches or pull requests

7 participants