@ angular / core包中出现多个错误

时间:2019-03-07 12:27:57

标签: angular typescript

我正在尝试启动Angular服务,但从injector.d.ts软件包目录中的definition.d.ts@angular/core/src文件中不断收到多个错误。 我的Angular版本是7.3.3,@ angular / core版本是7.2.0。

以下是错误:

ERROR in node_modules/@angular/core/src/di/injector.d.ts(68,64): error TS1110: Type expected.
node_modules/@angular/core/src/render3/definition.d.ts(317,26): error TS1110: Type expected.
node_modules/@angular/core/src/render3/definition.d.ts(317,33): error TS1003: Identifier expected.
node_modules/@angular/core/src/render3/definition.d.ts(317,83): error TS1005: ';' expected.
node_modules/@angular/core/src/render3/definition.d.ts(317,84): error TS1131: Property or signature expected.
node_modules/@angular/core/src/render3/definition.d.ts(317,98): error TS1005: '=>' expected.
node_modules/@angular/core/src/render3/definition.d.ts(328,16): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,12): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,28): error TS1005: ']' expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,29): error TS1005: ',' expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,30): error TS1136: Property assignment expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,31): error TS1136: Property assignment expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,40): error TS1005: ':' expected.
node_modules/@angular/core/src/render3/definition.d.ts(372,70): error TS1005: ',' expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,13): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,29): error TS1005: ']' expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,30): error TS1005: ',' expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,31): error TS1136: Property assignment expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,32): error TS1136: Property assignment expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,41): error TS1005: ':' expected.
node_modules/@angular/core/src/render3/definition.d.ts(383,52): error TS1005: ',' expected.
node_modules/@angular/core/src/render3/definition.d.ts(389,14): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(393,18): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(393,44): error TS1005: '(' expected.
node_modules/@angular/core/src/render3/definition.d.ts(393,55): error TS1005: ')' expected.
node_modules/@angular/core/src/render3/definition.d.ts(397,20): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(397,55): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(399,27): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(399,82): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(405,14): error TS1109: Expression expected.
node_modules/@angular/core/src/render3/definition.d.ts(406,1): error TS1128: Declaration or statement expected.
node_modules/@angular/core/src/render3/definition.d.ts(406,2): error TS1128: Declaration or statement expected.
node_modules/@angular/core/src/render3/definition.d.ts(406,4): error TS1128: Declaration or statement expected.

0 个答案:

没有答案