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
Adding constructor to the shape fixes it. The error thrown is:
/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint-plugin-react/lib/rules/prop-types.js:172
declaredPropTypes[key] ||
^
TypeError: Cannot read property 'loadingItems' of undefined
at _isDeclaredInComponent (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint-plugin-react/lib/rules/prop-types.js:172:26)
at isDeclaredInComponent (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint-plugin-react/lib/rules/prop-types.js:230:9)
at reportUndeclaredPropTypes (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint-plugin-react/lib/rules/prop-types.js:704:9)
at EventEmitter.Program:exit (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint-plugin-react/lib/rules/prop-types.js:876:9)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at NodeEventGenerator.leaveNode (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint/lib/util/node-event-generator.js:49:22)
at CodePathAnalyzer.leaveNode (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:627:23)
at CommentEventGenerator.leaveNode (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint/lib/util/comment-event-generator.js:110:23)
at Controller.traverser.traverse.leave (/Users/yamadapc/program/github.com/beijaflor-io/paom/node_modules/eslint/lib/eslint.js:908:36)
The text was updated successfully, but these errors were encountered:
yamadapc
changed the title
Throws an error when reading from passed prop constructor
Throws an error when reading from passed prop's constructor
Jun 29, 2016
This plugin is throwing an error with code like:
Adding constructor to the shape fixes it. The error thrown is:
The text was updated successfully, but these errors were encountered: