Nuxt.js+TypescriptのソースがIntelliJ IDEAで「Ts1219」Warningが出る
Nuxt.jsにTypescriptを適用して、Classを書こうとしたときに、下記エラーが出ました。
TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
エディタはIntelliJ IDEAです。
メッセージの下にも出ていましたが、configファイルで「experimentalDecorators」を有効にすると良いらしい。
ということで、tsconfig.jsonのcompilerOptions
以下に下記記述を追加するとWarningが消えます。
PhpStormや他のJetbrain系IDEでも対応可能と思います。
{ "compilerOptions": { ... + "experimentalDecorators": true, ...
参考 VSCodeとVetur(TypeScript)でexperimentalDecoratorsの警告が消えない - Qiita