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 Mar 25, 2021. It is now read-only.
/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:49881
var flags = symbol.flags;
^
TypeError: Cannot read property 'flags' of undefined
at displayPartKind (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:49881:31)
at symbolPart (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:49879:34)
at Object.writeSymbol (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:49866:31)
at buildBindingElementDisplay (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18771:28)
at /Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18752:110
at buildDisplayForCommaSeparatedList (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18798:21)
at buildBindingPatternDisplay (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18752:21)
at buildParameterDisplay (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18736:21)
at buildDisplayForParametersAndDelimiters (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18826:21)
at Object.buildSignatureDisplay (/Users/kourge/projects/urbandoor/web-app/node_modules/typescript/lib/typescript.js:18872:17)
Expected behavior
No error.
Additional notes
This error does not happen if any of the following is true:
The function is exported
The second-level destructuring is removed
The text was updated successfully, but these errors were encountered:
kourge
changed the title
no-unused-variable and destructuring
no-unused-variable fails with argument destructuring
Oct 18, 2016
I'm seeing the Cannot read property 'flags' of undefined error when the no-unused-variable rule is used with tslint 5.4.3 and tsc 2.4.1. If I remove that rule I no longer see the error.
Bug Report
3.13.0
2.0.2
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
No error.
Additional notes
This error does not happen if any of the following is true:
The text was updated successfully, but these errors were encountered: