electricessence / TypeScript.NET

A JavaScript-Friendly .NET Based TypeScript Library (Moved)
https://github.com/electricessence/TypeScript.NET-Core
Other
251 stars 36 forks source link

Initializers are not allowed in ambient contexts #54

Closed lommez closed 7 years ago

lommez commented 7 years ago

Hi, I´ve downloaded the latest version, typescript-dotnet-amd@4.7.13. And the compiler is raising that exception: "Error TS1039 Initializers are not allowed in ambient contexts." On file typescript-dotnet-amd\System\ExceptionType.d.ts. I'm using typescript 2.1.4. Do you know why this is happening? Thanks!

electricessence commented 7 years ago

@lommez investigating

electricessence commented 7 years ago

I would need to see an example of your code that is triggering this. This file specifically is only there for respect to .NET . There is nothing about this file that would cause an exception.

lommez commented 7 years ago

I'm going to investigate this better, because i just updated the typescript-dotnet and nothing more.

lommez commented 7 years ago

Is the bower version is up to date?

lommez commented 7 years ago

I found out what was the error. Visual Studio was running a older version of typescript. Now i could build my project without a problem