2/23/2018 - 9:26 PM

[REACTJS] Fixing issue 'experimentalDecorators' typescript

after add the import import autobind from 'autobind-decorator' visual studio shows the message 'experimentalDecorators'


Just listing my solution here if anyone faced the same problem I had where typescript fails to compile files that has the error [ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

Using VSCode 1.11.2 , Typescript 2.2.2

Change experimentalDecorators to false.
Put in the include options in your tsconfig "include": [ "src/**/*"]
Restart VSCode
 👍 9