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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With