После запуска углового проекта Visual Studio показывает ошибки машинописи в файле lib.dom.d.ts - PullRequest
0 голосов
/ 05 октября 2019

У меня есть угловой проект, проект запускается с VS 2017 года ... но показывает слишком много ошибок (ошибка tslint) для файла машинописного текста, расположенного в C: \ Program Files (x86) \ Microsoft SDKs \ TypeScript \ 3.2 \ lib.dom. d.ts

после запуска проекта Visual Studio показывает ошибки, но веб-сайт работает

, как я могу отключить эти ошибки? s

Файл tsconfig.js:

  "compileOnSave": false,
  "compilerOptions": {
    "importHelpers": true,
    "module": "esnext",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es2015",
    "skipLibCheck": true,
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ],
    "plugins": [
      { "name": "tslint-language-service" }
    ]
  }
}

...