React 16.0 + PropTypes Issue
See original GitHub issueHaving react
and react-dom
upgraded to 16
, I am getting the following error which I suspect relates to the new way one need to declare pros types using PropTypes
. I think this repo has already upgraded to use new format of PropTypes
but I’m not clear why still seeing this error!
react-bootstrap-date-picker/lib/index.js:117
selectedDate: _react2.default.PropTypes.object,
^
TypeError: Cannot read property 'object' of undefined
at Object.<anonymous> (../node_modules/react-bootstrap-date-picker/lib/index.js:117:44)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:19
- Comments:30
Top Results From Across the Web
Broke with react 16.0.0. @ React.PropTypes.oneOfType #936
React v. 16.0.0 comes up with separate 'prop-types module. Having said that it is not included in React itself.
Read more >Don't Call PropTypes Warning - React
bool . This pattern by itself is fine, but triggers a false positive because React thinks you are calling PropTypes directly. The next...
Read more >React native 0.69.1 I am facing issue 'deprecated-react-native ...
Requiring module "node_modules/react-native-snap-carousel/src/index.js", which threw an exception: Invariant Violation: ViewPropTypes has been ...
Read more >eslint-plugin-react - npm
prefer-stateless-function, Enforce stateless components to be written as a pure function ; prop-types, Disallow missing props validation in a ...
Read more >Resolve types from React 'prop-types' : WEB-26418 - YouTrack
3 and am still seeing this issue (ss attached). I've re-downloaded the Prop Types but still am seeing unresolved variables. Build Info: WebStorm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 for version bump with latest in master https://github.com/pushtell/react-bootstrap-date-picker/commit/f622dc8872dd180324ba5d3c295d009848f5814b
Issue is temporarily fixed by doing:
but I wonder if this is sustainable. Can we get a version bump wherein we have the latest commits?