0

Vite でスキャフォールディングされた React プロジェクトで実行しようとしていtscます - 他のすべてのコマンドは正常に実行され、プロジェクトは正常にロードおよびビルドされますが、実行するtscと次のエラーが発生します。

../../node_modules/@types/download/index.d.ts:9:10 - error TS2614: Module '"got"' has no exported member 'GotEmitter'. Did you mean to use 'import GotEmitter from "got"' instead?

9 import { GotEmitter, GotOptions } from "got";
           ~~~~~~~~~~

../../node_modules/@types/download/index.d.ts:13:58 - error TS2315: Type 'GotOptions' is not generic.

13     interface DownloadOptions extends DecompressOptions, GotOptions<string | null> {
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~

自分でインストールしていないタイプモジュールに関連していることがわかります。これはどこから来たのですか?

4

1 に答える 1