【发布时间】:2020-12-02 14:29:41
【问题描述】:
使用 bundle 运行 deno 失败并出现以下错误:
error: TS2339 [ERROR]: Property 'getIterator' does not exist on type 'ReadableStream<R>'.
return res.readable.getIterator();
~~~~~~~~~~~
at https://deno.land/std@0.63.0/async/pool.ts:45:23
tsconfig
{
"compilerOptions": {
"lib": [
"deno.ns",
"dom",
"dom.iterable"
],
"plugins": [
{
"name": "typescript-deno-plugin"
}
]
}
}
运行命令。
$ deno bundle -c tsconfig.json app.ts app.js
请告诉我。
【问题讨论】:
标签: typescript deno