IDE stands for Integrated Development Environment is a software application that is used to build software...
While developing Angular applications in Visual Studio 2019 & Visual Studio Code following compile time error is shown:
TS1219 Experimental support for decorators is a feature that is subject to change in a future release. Specify ‘–experimentalDecorators’ to remove this warning.
Visual Studio Fix:
I am using Visual Studio 2019 and fixed the issue in it, it might work in other versions as well.
Add the following lines in .csproj file:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> <TypeScriptExperimentalDecorators>True</TypeScriptExperimentalDecorators> <TypeScriptEmitDecoratorMetadata>True</TypeScriptEmitDecoratorMetadata>