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
When I try to run tslint with no-unused-declaration enabled, I get this error:
The 'no-unused-declaration' rule threw an error in '/src/components/Styles.tsx':
TypeError: Cannot read property 'getText' of undefined
at noUnusedDeclarationRule.js:261:25
at Map.forEach ()
at Walker.seen
at Walker.seenJsx
at Walker.visitJsxElement
at Walker.SyntaxWalker.visitNode
at Walker.visitNode
at syntaxWalker.js:535:63
at visitNode
at Object.forEachChild
When I remove the defaultProps line, the linter succeeds so it appears that's where the error is. (If I disable no-unused-declaration, linting also succeeds.)
I like the look of the library, but looks like it won't be usable for us unless we can resolve this issue. Thanks for your consideration!
The text was updated successfully, but these errors were encountered:
When I try to run tslint with no-unused-declaration enabled, I get this error:
Here's the component:
When I remove the defaultProps line, the linter succeeds so it appears that's where the error is. (If I disable no-unused-declaration, linting also succeeds.)
I like the look of the library, but looks like it won't be usable for us unless we can resolve this issue. Thanks for your consideration!
The text was updated successfully, but these errors were encountered: