Skip to content

Uncaught TypeError: _moment2.default.range is not a function #8

@barbalex

Description

@barbalex

I get this error when opening the picker:

Uncaught TypeError: _moment2.default.range is not a function

Installed this in package.json, dependencies via:

"react-bootstrap-datetimepicker": "git://github.com/LKay/react-bootstrap-datetimepicker"

and calling it so:

<DateTimeField
  value={moment(geschaeft.fristDirektion, 'DD.MM.YYYY').format('DD.MM.YYYY')}
  format="DD.MM.YYYY"
  inputFormat="DD.MM.YYYY"
  mode="date"
  showToday
  onChange={this.onChangeDate.bind(this, 'fristDirektion')}
  //inputProps={dateFieldInputProps}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions