【问题标题】:Nativescript shared schema in VSCode always redlines classes with error "experimental support for decorators..." errorVSCode 中的 Nativescript 共享模式总是用错误“对装饰器的实验支持......”错误为类添加红线
【发布时间】:2019-07-11 21:48:42
【问题描述】:

我什么都试过了,重新加载,allowJS,在这两个值之间切换:

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

在 tsconfig.json 中并将其添加到 tsconfing.tns.ts 中。关闭插件,彻底卸载它们,似乎没有任何效果!

错误仍然存​​在。

【问题讨论】:

    标签: typescript visual-studio-code nativescript vscode-settings angular2-nativescript


    【解决方案1】:

    再次修改后,我发现 vscode 需要启用“打开或关闭它的能力”,以便关心我们在 tsconfig.json 中写入的任何内容。

    只需在您的 vscode > 首选项中搜索“实验性装饰器”并选中该框,即可启用此设置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-04
      • 2021-10-03
      • 2020-12-29
      • 1970-01-01
      • 2020-11-07
      • 2018-01-16
      • 2016-06-13
      • 2022-12-28
      相关资源
      最近更新 更多