I just cloned angular2-seed project from github and followed the steps, but i got this warning into VS code [ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'Exxperimentaldecorators' option to remove this warning.
Experimental support for decorators is a feature that is subject to change in a future release # To solve the error "Experimental support for decorators is a feature that is subject to change in a future release", make sure to set the experimentalDecorators to true in your tsconfig.
Go to File -> Preferences -> Settings. 2. Search "experimentalDecorators" 3. Check Enable/disable experimentalDecorators 4.
I had that issue when using @Injectable() on a new service that I created. I had that warning from VS Code's typescript compiler.
The warning disappeared when I added that new service as a provider to the module where I intended to use it.
Hopefully this solves your issue.
In Visual Studio code go to File -> Preferences -> Settings
and check Experimental Decorators
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