首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从2.0.10升级到2.1.1后出现错误“Node136 (UndefinedKeyword) was”

从2.0.10升级到2.1.1后出现错误“Node136 (UndefinedKeyword) was”
EN

Stack Overflow用户
提问于 2016-11-23 17:33:06
回答 1查看 41关注 0票数 0

从2.0.10升级到2.1.1后,我得到以下错误。我不知道是我的哪一个源文件引起了麻烦。任何提示都是值得感谢的。

代码语言:javascript
复制
[10:30:50] Error: Debug Failure. False expression: Unexpected node.
Verbose Debug Information: Node 136 (UndefinedKeyword) was unexpected.
    at Object.assert (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:3001:23)
    at Object.Debug.failBadSyntaxKind (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:42746:55)
    at serializeTypeNode (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44666:30)
    at serializeTypeNode (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44637:56)
    at serializeReturnTypeOfNode (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44563:24)
    at addOldTypeMetadata (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44428:136)
    at addTypeMetadata (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44416:17)
    at transformAllDecoratorsOfDeclaration (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44241:13)
    at generateClassElementDecorationExpression (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44288:40)
    at generateClassElementDecorationExpressions (C:\workspace\software-engineering\mean-ohne-angular\node_modules\typescript\lib\typescript.js:44268:34)
[10:30:50] 'ts' errored after 4.37 s
EN

回答 1

Stack Overflow用户

发布于 2016-11-24 02:50:41

问题出在tsconfig.json中,我使用了这两行代码:

"inlineSources": true, "emitDecoratorMetadata": true,

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40760580

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档