typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

Getting Error "Experimental support for decorators is a feature that is subject to change in a future release."

Open TSGames opened this issue 9 years ago • 1 comments

When I try to run typedoc on my angular-cli project, it ends with an error:

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

My tsconfig.json is already containing the line "experimentalDecorators": true,

and the project itself compiles just fine

I call typedoc like this: typedoc --out ./docs --target ES6 --module commonjs ./src/

Any ideas?

Thanks Torsten

TSGames avatar Feb 01 '17 12:02 TSGames

The Angular dependency injection requires that you set "experimentalDecorators": true, just as you did. Unfortunately the TypeScript compiler complains about this with the message you posted.

In order to ignore this warning when using typedoc, try adding --ignoreCompilerErrors like so: typedoc --out ./docs --target ES6 --module commonjs --ignoreCompilerErrors ./src/

gjungb avatar Apr 27 '17 13:04 gjungb