pushtell / react-bootstrap-date-picker

React-Bootstrap based date picker.
MIT License
347 stars 195 forks source link

TypeError: _react2.default.PropTypes is undefined #160

Open v2okimochi opened 6 years ago

v2okimochi commented 6 years ago

Your Environment

I'm using React and importing 'react-bootstrap-date-picker'.

Error messages:

TypeError: _react2.default.PropTypes is undefined

./node_modules/react-bootstrap-date-picker/lib/index.js
[workspace]/node_modules/react-bootstrap-date-picker/lib/index.js:117

  114 | displayName: 'DatePickerCalendar',
  115 | 
  116 | propTypes: {
> 117 |   selectedDate: _react2.default.PropTypes.object,
  118 |   displayDate: _react2.default.PropTypes.object.isRequired,
  119 |   minDate: _react2.default.PropTypes.string,
  120 |   maxDate: _react2.default.PropTypes.string,
DrDrakula commented 6 years ago

Having the same issue... Tried changing the dependencies "react-bootstrap-date-picker": "github:pushtell/react-bootstrap-date-picker#f622dc8872dd180324ba5d3c295d009848f5814b", but that didn't help.

maxaggedon commented 6 years ago

see #143