从2.0.10升级到2.1.1后,我会收到以下错误。我不知道我的源文件之一正在造成麻烦。任何提示都将被赞赏。
[10:30:50] Error: Debug Failure. False expression: Unexpected node.
Verbose Debug Information: Node 136 (UndefinedKeyword) was unexpected.
at Object.assert (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:3001:23)
at Object.Debug.failBadSyntaxKind (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:42746:55)
at serializeTypeNode (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44666:30)
at serializeTypeNode (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44637:56)
at serializeReturnTypeOfNode (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44563:24)
at addOldTypeMetadata (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44428:136)
at addTypeMetadata (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44416:17)
at transformAllDecoratorsOfDeclaration (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44241:13)
at generateClassElementDecorationExpression (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44288:40)
at generateClassElementDecorationExpressions (C:workspacesoftware-engineeringmean-ohne-angularnode_modulestypescriptlibtypescript.js:44268:34)
[10:30:50] 'ts' errored after 4.37 s
问题是在tsconfig.json
中,我有这2行:
"inlineSources": true,
"emitDecoratorMetadata": true,