The command "tsc --comments --module AMD --sourcemap --target ES3 error

Topics: General
Mar 29, 2013 at 4:47 AM
I am using windows 7, visual studio 2012 with Web Essentials 2012 installed .

Create a new project TypeScript HTML App from the template and hit f5 will give the following error

Any help will be appreciated

Error msg as follow

Error 1 The command "tsc --comments --module AMD --sourcemap --target ES3 "i:\Users\Administrator\Documents\Visual Studio 2012\Projects\TypeScriptHTMLApp4\TypeScriptHTMLApp4\app.ts"" exited with code 1. TypeScriptHTMLApp4


Project file as follow
</PropertyGroup>
<PropertyGroup>
<RootNamespace>TypeScriptHTMLApp4</RootNamespace>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<ProjectExtensions>
<VisualStudio>
  <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
    <WebProjectProperties>
      <UseIIS>True</UseIIS>
      <AutoAssignPort>True</AutoAssignPort>
      <DevelopmentServerPort>0</DevelopmentServerPort>
      <DevelopmentServerVPath>/</DevelopmentServerVPath>
      <IISUrl>http://localhost:2874/</IISUrl>
      <NTLMAuthentication>False</NTLMAuthentication>
      <UseCustomServer>False</UseCustomServer>
      <CustomServerUrl>
      </CustomServerUrl>
      <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
    </WebProjectProperties>
  </FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<TypeScriptTarget>ES3</TypeScriptTarget>
<TypeScriptIncludeComments>true</TypeScriptIncludeComments>
<TypeScriptSourceMap>true</TypeScriptSourceMap>
<TypeScriptModuleKind>AMD</TypeScriptModuleKind>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TypeScriptTarget>ES3</TypeScriptTarget>
<TypeScriptIncludeComments>false</TypeScriptIncludeComments>
<TypeScriptSourceMap>false</TypeScriptSourceMap>
<TypeScriptModuleKind>AMD</TypeScriptModuleKind>
</PropertyGroup>
<Import Project="$(VSToolsPath)\TypeScript\Microsoft.TypeScript.targets" />
</Project>
Coordinator
Mar 29, 2013 at 2:55 PM
That commandline seems to work for me.

One thing you might want to try is to not use WebEssentials and see if this fixes the issue. In the past, we've seen WebEssential's additional functionality conflict with what is provided by the TypeScript Visual Studio plugin.

After installing WebEssentials, you could also try uninstalling and reinstalling the TypeScript plugin to try to get back to a known state.