#typescript
#typescript
Вопрос:
Я получаю это сообщение об ошибке:
Я ничего не могу найти о цепочке в конфигурации webstorm, поэтому вот моя конфигурация:
Версия Angular: 8
Webstorm: 2020.3
версия typescript 4.0.2
в package.json:
"typescript": "^4.0.3",
...
"ts-node": "^7.0.1",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
tsconfig.json:
{
"compilerOptions": {
"lib": [ "es2017" ],
"module": "commonjs",
"sourceMap": true,
"target": "es6",
"moduleResolution": "node",
"resolveJsonModule": true
},
"exclude": [
"node_modules"
]
}
tslint.json:
{
"rules": {
"member-access": true,
"no-console": false,
"ordered-imports": false,
"one-variable-per-declaration": false,
"indent": [true, "spaces", 2],
"no-empty": false,
"object-literal-sort-keys": false,
"no-submodule-imports": false,
"member-ordering": false,
"no-var-requires": false
},
"extends": [
"tslint:latest",
"tslint-config-prettier"
]
}
Комментарии:
1. Какова ваша версия TypeScript?
2. моя версия машинописного текста — 4.0.2