You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above error seems to happen when using tslint 5.1.0, typescript 2.3.0; not sure how to reduce the input to a code snippet.
The unique part of the stack trace, for which I had to edit tslint/lib/linter.js to be able to obtain at all, looks like this:
TypeError: Cannot read property 'getStart' of undefined
at JsxAlignmentWalker.getLineAndCharacter (.../node_modules/tslint-react/rules/jsxAlignmentRule.js:128:61)
at JsxAlignmentWalker._this.getCharacter (.../node_modules/tslint-react/rules/jsxAlignmentRule.js:52:61)
at JsxAlignmentWalker.checkElement (.../node_modules/tslint-react/rules/jsxAlignmentRule.js:80:39)
at JsxAlignmentWalker.visitJsxElement (.../node_modules/tslint-react/rules/jsxAlignmentRule.js:60:18)
at JsxAlignmentWalker.SyntaxWalker.visitNode (.../node_modules/tslint/lib/language/walker/syntaxWalker.js:401:22)
at .../node_modules/tslint/lib/language/walker/syntaxWalker.js:530:63
at visitEachNode (.../node_modules/typescript/lib/typescript.js:14674:30)
at Object.forEachChild (.../node_modules/typescript/lib/typescript.js:14998:21)
at JsxAlignmentWalker.SyntaxWalker.walkChildren (.../node_modules/tslint/lib/language/walker/syntaxWalker.js:530:12)
at JsxAlignmentWalker.SyntaxWalker.visitJsxElement (.../node_modules/tslint/lib/language/walker/syntaxWalker.js:153:14)
at JsxAlignmentWalker.visitJsxElement (.../node_modules/tslint-react/rules/jsxAlignmentRule.js:62:42)
at JsxAlignmentWalker.SyntaxWalker.visitNode (.../node_modules/tslint/lib/language/walker/syntaxWalker.js:401:22)
The text was updated successfully, but these errors were encountered:
It looks like TypeScript 2.3 has a new JSXAttributes kind (253), which is the new type of the opening element attributes property, instead of being a just an array of JSXAttribute.
Jessidhia
changed the title
TypeError: Cannot read property 'getStart' of undefined
TS 2.3 API change: TypeError: Cannot read property 'getStart' of undefined
Apr 14, 2017
Jessidhia
changed the title
TS 2.3 API change: TypeError: Cannot read property 'getStart' of undefined
TS 2.3 API change breaks jsx-alignment
Apr 14, 2017
The above error seems to happen when using tslint 5.1.0, typescript 2.3.0; not sure how to reduce the input to a code snippet.
The unique part of the stack trace, for which I had to edit
tslint/lib/linter.js
to be able to obtain at all, looks like this:The text was updated successfully, but these errors were encountered: