运行时:
-
节点v11。7
-
RxJS版本:6.3.3
-
@类型/节点:8.10.45
-
tsc:3.2.4
跑步时
tsc
我在Rxjs的某个地方看到,
setTimeout
在没有通过电话的情况下被呼叫
ms
参数,这与
@types/node
定义
设置超时
.由于我更新了Rxjs的最新版本,我无法再构建我的项目了。
有解决办法吗?
node_modules/rxjs/src/internal/util/hostReportError.ts:7:3 - error TS2555: Expected at least 2 arguments, but got 1.
7 setTimeout(() => { throw err; });
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/node/index.d.ts:123:65
123 declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
~~~~~~~~~~
An argument for 'ms' was not provided.