VSCode中的Nativescript共享模式始终使用错误“对装饰器的实验性支持...”错误重写类

问题描述 投票:3回答:1

我已经尝试了一切,重新加载,allowJS,在这两个值之间切换:

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

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

错误仍然存​​在。

typescript visual-studio-code nativescript vscode-settings angular2-nativescript
1个回答
1
投票

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

只需在vscode>偏好中搜索“实验装饰器”,然后选中该框,即可使用此设置。

© www.soinside.com 2019 - 2024. All rights reserved.