tslint没想到在其琐事中会有jsx。什么是琐事?

时间:2018-11-27 16:15:24

标签: typescript pycharm jsx tslint

在这种情况下,“琐事”一词是什么意思?

Error: Debug Failure. Did not expect JsxExpression to have an Identifier in its trivia
    at addSyntheticNodes (/home/jmunsch/PycharmProjects/pm/node_modules/typescript/lib/typescript.js:110825:30)
    at createChildren (/home/jmunsch/PycharmProjects/pm/node_modules/typescript/lib/typescript.js:110814:9)
    at NodeObject.getChildren (/home/jmunsch/PycharmProjects/pm/node_modules/typescript/lib/typescript.js:110758:56)
    at iterate (/home/jmunsch/PycharmProjects/pm/node_modules/tsutils/util/util.js:368:26)
    at Array.forEach (<anonymous>)
    at iterate (/home/jmunsch/PycharmProjects/pm/node_modules/tsutils/util/util.js:368:50)
    at Array.forEach (<anonymous>)
    at iterate (/home/jmunsch/PycharmProjects/pm/node_modules/tsutils/util/util.js:368:50)
    at Array.forEach (<anonymous>)
    at iterate (/home/jmunsch/PycharmProjects/pm/node_modules/tsutils/util/util.js:368:50)

我含糊其词,意思是规则或语法之类的东西,但似乎不太合适。

我使用的是PyCharm,在我编辑tsx文件中的某些div标签时,偶尔会出现错误,主要是在编辑过程中。


相关:

1 个答案:

答案 0 :(得分:1)

在TypeScript代码库中,“琐事”是指注释。