Experimental decorators warning in TypeScript compilation

I receive the warning…

Experimental support for decorators is a feature that is subject to change in a future release. Set the ‘experimentalDecorators’ option `to remove this warning.

… even though my compilerOptions in tsconfig.json have the following settings:

"emitDecoratorMetadata": true,
"experimentalDecorators": true,

What is weird is that some random classes that use decorators do not show that warning but the rest in the same project do.

What could cause such behavior in the TypeScript compiler?

38 Answers
38

Leave a Comment