Angular 8似乎无法识别Object,JSON

时间:2019-06-19 09:54:05

标签: typescript webstorm angular8

我正在测试Angular 8,WebStorm抱怨说它不了解ObjectJSON(请参见所附图片)。

在我的tsconfig.json中,我在lib键下有domes2018

我需要清除此警告的哪些设置?

enter image description here

tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "module": "esnext",
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ]
  }
}

@lena

eror highlight

0 个答案:

没有答案