Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracht opened this issue Aug 1, 2024 · 2 comments
Open

Comments

@Tracht
Copy link

Tracht commented Aug 1, 2024

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

  • Inside create-react-app, install the following:
  • "react-date-range": "1.4.0"
  • "date-fns": "^3.6.0"

[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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants