hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.6k stars 680 forks source link

React-date-range version 1.4.0 is not compatible with date-fns 3.6.0 #649

Open Tracht opened 3 months ago

Tracht commented 3 months ago

Subject of the issue

"react-date-range": "1.4.0" is not compatible with "date-fns": "^3.6.0".

TypeError: (_addYears.default) is not a function at ./node_modules/react-date-range/dist/components/Calendar/indexjs

Screenshot 2024-08-01 at 10 57 35

[BUG] Bug Reproduce Steps

[BUG] Expected behaviour

Environment

Package Version: 1.4.0 React version: 18.2.0 Node version: 21.7.1 Browser: Version 121.0.6167.184 (Official Build) (arm64)

Aagam-Pragma commented 3 months ago

Hey @Tracht Any resolve for this issue ? I am too facing the same issue. Tried degrading the versions as well but still facing the same issue.

delasource commented 2 months ago

this package's version 2.0.1 is compatible with 3.6.0. Try upgrading with npm.