外部库中的"TS2729 [ERROR]: Property 'boundary' used before its initialization"



今天将我的deno版本更新到1.9后,我在运行测试或脚本时开始出现以下问题:

TS2729 [ERROR]: Property 'boundary' is used before its initialization.
readonly dashBoundary = encoder.encode(`--${this.boundary}`);
~~~~~~~~
at https://deno.land/std@0.63.0/mime/multipart.ts:266:52
'boundary' is declared here.
constructor(reader: Deno.Reader, private boundary: string) {
~~~~~~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.63.0/mime/multipart.ts:269:36

我检查了一下,我没有在代码中的任何地方使用mime存储库,相反,其他一些存储库必须使用它。

我正在使用以下存储库:

  1. x/abc
  2. std/uuid
  3. std/fs
  4. std/path
  5. std/fmt
  6. std/测试

我确保我明确使用最新版本来导入所有std库(std版本0.93.0(。

当我运行导入std库的文件(而不是运行整个应用程序(时,不会出现错误。

有人知道如何解决这个错误吗?

存储库x/abc似乎是问题所在。

我在隐式导入时没有添加版本。当以以下方式隐式导入时,它起作用:

import abc from "https://deno.land/x/abc@v1.3.1/mod.ts";

最新更新