最佳答案
这看起来像是 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/