hypeserver / react-date-range

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

v1.4.0 gives an issue date-fns/max module not found. i have used v1.4.0 in production. #638

Closed abdarker closed 4 months ago

abdarker commented 4 months ago

Subject of the issue

1.4.0 gives an issue date-fns/max module not found. i have used v1.4.0 in production. now what should i do for a long term solution.

[BUG] Bug Reproduce Steps

1.4.0 gives an issue date-fns/max module not found. i have used v1.4.0 in production. now what should i do for a long term solution.

[BUG] Expected behaviour

1.4.0 gives an issue date-fns/max module not found. i have used v1.4.0 in production. now what should i do for a long term solution.

Environment

Package Version: v1.4.0 React version: 18.2.0 Node version: 18 Browser: chrome image

Dev-Sharma-197 commented 4 months ago

have you found any solution?

abdarker commented 4 months ago

yes i have. all you need to do is putting these two lines in dependencies in package.json if you are using v1.4.0 and do a clean install your node module that should fix your problem.

"react-date-range": "1.4.0", "date-fns": "2.0.0-alpha.7 || >=2.0.0",

keremciu commented 4 months ago

you can just install version 2 if you need date-fns 3 support