Closed danielzlotnik closed 7 years ago
Hi @danielzlotnik thanks for the report! This package assumes that Object.entries (and likely other things) is shimmed, which can be achieved by using airbnb-js-shims or an equivalent package (as mentioned in the readme).
Same issue here. We are using babel-polyfill with presets of es2015,stage-0 & react.Would we need to update to es2017?
@14850842 yes.
I found this wasn't needed on the newest node
Same here with a ejected create-react-app setup. Tried to enable es2017 preset but with no luck. Is there any simple way to fix this? Preferably without having to understand Babel... :)
Solved it by putting
import 'airbnb-js-shims/target/es2015'
before
import { SingleDatePicker } from 'react-dates'
works on chrome (56.0) but not on safari (9.1.3). adding airbnb-js-shims solves this issue; although it took us a while before landing here (a better highlight on the react-dates README maybe ?)
I've addressed this with b09134f93d1fb45a8c48d5a0e6c265fdbad3a1ee by removing the requirement to polyfill. (see also https://github.com/airbnb/react-dates/issues/405#issuecomment-289521845 and #9)
Released as v2.5.2
.
Encountered this bug while trying to use react-dates. Had to force usage of version 2.2.0.