visual-studio - 构建 :Generic type 'Promise<T, R>' requires 2 type argument(s)

标签 visual-studio typescript compiler-errors promise

在 Visual Studio 上运行我的项目时出现此错误。很烦人。我什至无法编译

Screenshot

最佳答案

这看起来像是 NS 模块中的 Promise 定义与 ES6 类型之间的冲突。 正如在回答类似问题时提到的 here ,尝试针对 tns-core-modules.es6.d.ts 而不是通常的 tns-core-modules.d.ts 进行构建。

关于visual-studio - 构建 :Generic type 'Promise<T, R>' requires 2 type argument(s),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44327009/

相关文章:

c++ - 无法计算位数作为输入

typescript - 使用 karma-jasmine 和 istanbul 的 Typescript 代码覆盖率

循环引用特征的 Scala 类型错误

visual-studio - 在MSBuild文件中获取VS 2017的正确$(VisualStudioVersion)

c++ - 为什么我不能在即时窗口中索引 std::vector?

c - Microsoft Visual Studio C 运行时库在 filecopy.exe 中检测到 fatal error

typescript - 声明单一类型 - "using"等同于单一类型

javascript - 是否有从对象渲染组件的方法? - react

oracle - 如何在 sqlplus 中显示错误

c++ - 错误 : use of deleted function when I try to use a reference