3

I am getting the following errors when using Visual Studio 2015 CTP and trying to use TypeScript.

1>VSTSC : error TS5015: Build: Unsupported locale: 'en-US'.
1>VSTSC : error TS5023: Build: Unknown option 'noEmitOnError'

I was able to get both errors to go away by setting the following configurations in the csproj file

<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
<TypeScriptNoEmitOnError>false</TypeScriptNoEmitOnError>
<TypeScriptBuildConfigurations>--sourcemap --target ES5</TypeScriptBuildConfigurations>

However if I include any DefinitelyTyped typing files such as Angular or jQuery it will throw a bunch of errors. The errors appear to be that it doesn't understand the TypeScript 1.4 syntax for multiple value typings.

Example:

search(search: string, paramValue: string|number|string[]|boolean): ILocationService;

Error: Build: ',' expected

Is this a bug in Visual Studio 2015 CTP or just something messed up in my configuration.

3
  • I resolved the issue by downloading the source version from GitHub of TypeScript and putting the /bin directory into C:\Program Files (x86)\Microsoft SDKs\TypeScript Commented Jan 30, 2015 at 23:35
  • Also worth noting that I had to copy the en directory from the 1.4 directory and put it in the C:\Program Files (x86)\Microsoft SDKs\TypeScript directory. Then rename it to en-US in order to remove the Unsupported locale error. But I no longer needed specific the csproj settings Commented Jan 30, 2015 at 23:41
  • 1
    any update on this one, having the same issue after using visual studio 2015 for a vs 2013 solution. Commented Sep 2, 2015 at 0:55

2 Answers 2

6

I just had this occur for me when I installed TypeScript 1.8.6 Visual Studio 2015 plugin.

Eventually I fixed it by uninstalling all previous versions of TypeScript (of which I had many) using Add/Remove programs, and then reinstalling TypeScript plugin 1.8.6.

Sign up to request clarification or add additional context in comments.

1 Comment

Same issue here - had to remove any older versions as well as reinstall 1.8.6 afterwords. I had TypeScript Tools for Visual Studio 2015 1.7.6.0. Once uninstalled and latest version reinstalled - builds worked fine again.
1

I fixed this problem by re-running the TypeScript 1.4 for Visual Studio 2013 installer, copying the GitHub sources into "C:\Program Files (x86)\Microsoft SDKs\TypeScript" didn't work for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.