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
{{ message }}
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
The brace-style rule throws when it encounters a try/finally block with no catch, e.g.
try {
// do some stuff here
} finally {
// clean-up code here
}
Adding the catch block fixes the problem.
The error is something like:
/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js:130
return node.getSourceFile().getLineAndCharacterOfPosition(node.getEnd());
^
TypeError: Cannot read property 'getSourceFile' of undefined
at BraceStyleWalker.getEndPosition (/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js:130:20)
at BraceStyleWalker.areOnSameLine (/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js:124:21)
at BraceStyleWalker.visitTryStatement (/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js:65:40)
at BraceStyleWalker.SyntaxWalker.visitNode (/node_modules/tslint/lib/language/walker/syntaxWalker.js:429:22)
at /node_modules/tslint/lib/language/walker/syntaxWalker.js:459:63
The text was updated successfully, but these errors were encountered:
The brace-style rule throws when it encounters a
try
/finally
block with nocatch
, e.g.Adding the
catch
block fixes the problem.The error is something like:
The text was updated successfully, but these errors were encountered: