Closed
Description
Today I tried upgrading to the newest eslint
and the newest eslint-config-airbnb
. Now when I try linting my codebase, I seem to get this error over and over in an infinite loop:
TypeError: Cannot read property 'name' of undefined
at markPropTypesAsDeclared (...\node_modules\eslint-plugin-react\lib\util\propTypes.js:475:51)
at Object.MemberExpression (...\node_modules\eslint-plugin-react\lib\util\propTypes.js:644:9)
at updatedRuleInstructions.(anonymous function) (...\node_modules\eslint-plugin-react\lib\util\Components.js:706:43)
at listeners.(anonymous function).forEach.listener (...\node_modules\eslint\lib\util\safe-emitter.js:45:58)
at Array.forEach (<anonymous>)
at Object.emit (...\node_modules\eslint\lib\util\safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (...\node_modules\eslint\lib\util\node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (...\node_modules\eslint\lib\util\node-event-generator.js:280:22)
at NodeEventGenerator.enterNode (...\node_modules\eslint\lib\util\node-event-generator.js:294:14)
at CodePathAnalyzer.enterNode (...\node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:632:23)
I'm not sure what code is causing this because the filename isn't being printed out. Let me know if you need more info and I'll gladly help out.
Metadata
Metadata
Assignees
Labels
No labels