問題描述

使用VSCode時,你是否常常會遇到編譯器發出以下警告訊息呢?

[ts] Experimental suport for decorators is a feature that is subject to chang in a future release. Set the 'experimentalDecoratos' option to remove this warning.

or

[ts] 裝飾項目的實驗性支援這項功能可能在未來版本中變更。設定 'experimentalDecorators' 選項可移除此警告。

 

解法

1.選擇檔案 => 喜好設定 => 設定 (File => Preferences => Settings),打開使用者設定

2.json檔中加入"javascript.implicitProjectConfig.experimentalDecorators": true

儲存後就大功告成 !

arrow
arrow
    文章標籤
    VSCode
    全站熱搜

    橘子亂說話 發表在 痞客邦 留言(0) 人氣()