React-datepicker: Popper errors with latest react version

Created on 27 Nov 2017  路  4Comments  路  Source: Hacker0x01/react-datepicker

When ReactDatepicker is imported a warning shows up:

Invalid argument supplied to oneOf, expected an instance of array Popper.js:256

The date input shows up, but when it's clicked an error is thrown:

Uncaught TypeError: _popper2.default is not a constructor at Popper._createPopper (Popper.js:173) at Popper._updatePopper (Popper.js:152)

I am using react 16 and react-datepicker 0.61

needs more info wontfix

Most helpful comment

Any news on this?

All 4 comments

I get the same errors.

react 16, react-datepicker 1.2.1, react-popper 0.8.2

Any news on this?

Looks to me like for some reason the import of placements from popper.js is returning undefined instead of an array of placements. Will try to look into it and submit a PR in the next few days unless somebody has time sooner.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pinturic picture pinturic  路  3Comments

kkras3 picture kkras3  路  3Comments

ericreis picture ericreis  路  3Comments

carmouche picture carmouche  路  3Comments

jcabrerazuniga picture jcabrerazuniga  路  3Comments