更新时间:2022-12-07 21:03:17
尝试将以下 lib 部分添加到您的 tsconfig.json 文件中.
lib
tsconfig.json
Try adding the following lib section to your tsconfig.json file.
{ "compilerOptions": { "lib": [ "es2016", "dom" ] } }
TypeScript 项目中缺少基本的 DOM 类型
缺少TypeScript项目中的基本DOM类型