title: React-widgets DateTimePicker throwing error 'Cannot read property 'oneOfType' of undefined
body: <p>I am using redux-forms and their example has a date time picker from react-widgets.  <a href="https://redux-form.com/8.1.0/examples/react-widgets/" rel="nofollow noreferrer">Redux-Form react-widgets example</a></p>
  
  <p>On the example on this page, it has a link to react-widgets. I pretty much followed the example on redux-forms site and I keep getting the following error:</p>
  
  <p><strong>TypeError: Cannot read property 'oneOfType' of undefined
  ./node_modules/react-widgets/lib/util/localizers.js
  /node_modules/react-widgets/lib/util/localizers.js:23</strong></p>
  
  <p>Before anyone asks if Redux-Forms is setup correctly, I have this working with a couple of other render fields, I'm trying to add a date picker and it just crapped out on me.</p>
  
  <pre><code>// RenderDateTimePicker.jsx
  import React from 'react';
  import PropTypes from 'prop-types';
  import DateTimePicker from 'react-widgets/lib/DateTimePicker';
  import moment from 'moment';
  import momentLocaliser from 'react-widgets/lib/localizers/moment';
  momentLocaliser(moment);
  
  const RenderDateTimePicker = ({input: { onChange, value, name }, label, outercss, inputcss, showTime}) =&gt; {
  
      return (
          &lt;div className={outercss}&gt;
              &lt;label htmlFor={name}&gt;{label}&lt;/label&gt;
              &lt;DateTimePicker onChange={onChange}
                              className={inputcss}
                              format={{ raw: 'MM/dd/yyyy'}}
                              defaultValue={new Date()}
                              time={showTime}
                              value={!value ? null : new DateTimePicker(value)}
              /&gt;
          &lt;/div&gt;
      )
  }
  export default RenderDateTimePicker
  
  
  // Snippet of main compoent
  import React, { Component } from 'react';
  import { Field, reduxForm  } from 'redux-form';
  import { connect } from 'react-redux';
  import RenderTextField from '../common/RenderTextField';
  import RenderDateTimeField from '../common/RenderDateTimePicker';
  
  export class SearchBar extends Component {
  
  
      render() {
        const { handleSubmit } = this.props;
  
          return (
             &lt;form onSubmit={handleSubmit}&gt;
               &lt;Field  name="startDt"
                       outercss="col-md-2"
                       inputcss="form-control form-control-sm"
                       label="Start Date"
                       component={RenderTextField}
              /&gt;
  
              &lt;Field  name="endDt"
                      outercss="col-md-2"
                      inputcss="form-control form-control-sm"
                      label="End Date"
                      component={RenderDateTimeField}
              /&gt;
  
              &lt;button className="btn btn-primary"&gt;Search&lt;/button&gt;
        &lt;/form&gt;
  
  
          )
      }
  }
  export default reduxForm({
      form: 'SerchAppDeploymentForm'
  })(
          connect(mapStateToProps, mapDispatchToProps)(SearchBar)
  );
  
  </code></pre>