【发布时间】:2017-11-28 22:59:31
【问题描述】:
我收到这个错误
Experimental support for decorators is a feature that is subject
to change in a future release. Set the 'experimentalDecorators'
option to remove this warning.
仅在新创建的文件中。我尝试了所有解决方案,例如设置 typescript.tsdk 选项等。我在 VSCode 和 Atom 编辑器中都看到了相同的错误。
正如您在下面的屏幕截图中看到的,错误仅发生在新文件中。
我用相同的内容编辑现有文件并且没有错误。
【问题讨论】:
标签: typescript visual-studio-code atom-editor tsc