得到此错误错误TS1005:';'预期

时间:2018-09-05 14:51:39

标签: angular typescript angular6

我正在处理角度6,并且遇到此错误。

    src/app/config/config-abc-details.component.ts(296,28): error TS1005: ';' expected.

    src/app/config/config-abc-details.component.ts(627,1): error TS1128: Declaration or statement expected.

    src/app/config/config-abc-details.component.ts(430,1): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.

这是版本详细信息

  "dependencies": {
    "@angular/animations": "^6.1.2",
    "@angular/cdk": "^6.4.3",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/material": "^6.4.3",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/router": "^6.0.3",
}
"devDependencies": {
    "@angular/cli": "~6.0.8",
    "@angular/compiler-cli": "^6.0.3",
    "@types/jquery": "^3.3.5",
     "typescript": "^2.7.2"
}

当我将打字稿更新为“打字稿”:“ ^ 2.8.0”时,出现此错误 Angular编译器中的错误要求TypeScript> = 2.7.2和<2.8.0,但是找到了2.9.2

请帮助我解决这个问题

0 个答案:

没有答案