question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React 16.0 + PropTypes Issue

See original GitHub issue

Having 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:open
  • Created 6 years ago
  • Reactions:19
  • Comments:30

github_iconTop GitHub Comments

15reactions
Quancomcommented, Nov 13, 2017
12reactions
kevinguardcommented, Nov 4, 2017

Issue is temporarily fixed by doing:

"react-bootstrap-date-picker": "github:pushtell/react-bootstrap-date-picker#f622dc8872dd180324ba5d3c295d009848f5814b",

but I wonder if this is sustainable. Can we get a version bump wherein we have the latest commits?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found