-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
typescript decorators giving error in vs2015 #6476
Comments
You will need to manually add <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<TypeScriptRemoveComments>false</TypeScriptRemoveComments>
<TypeScriptSourceMap>true</TypeScriptSourceMap>
</PropertyGroup> add the new property tot he PropertyGroup: <TypeScriptExperimentalDecorators>true</TypeScriptExperimentalDecorators> for more infromation abotu MSBuild properties, please check: https://github.com/Microsoft/TypeScript/wiki/Setting-Compiler-Options-in-MSBuild-projects |
i had already done that and this is not helping me out still the compiler is unhappy |
Can you share the project file? |
|
@mhegazy please provide me with a solution . |
sorry for that. looks like a bug. |
@pranaydutta89, to work around the issue for now, please edit your project file and replace: <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> with <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> |
@mhegazy ur snippet did the trick thanks for help |
Checked in a fix, so we write the TypeScript properties in a more logical location. |
This is still a problem none of the solution works i still get errors that i didnt set experimental decorators to true |
@Dzivo this is a fairly old issue. do you mind filing a new issue and provide information about what version of TS/VS are you using, also a sample project would be helpful. |
I am using typescript as my nodejs(ntvs) project and using decorators but its giving compile time error as ' Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning.'
now since there is no tsconfig.json so i could not add the above paramtere which the compiler is asking ,and after searching for the issue on net , i changed the node.js project file and added the same parameter, then also still the issue persist, please help me with the issue.

The text was updated successfully, but these errors were encountered: