Replies: 1 comment
-
Hi @heytheretyo! To use DayPicker with latest date-fns, please upgrade react-day-picker to the latest version. In your package manager, there are options to override the peer dependencies, but I can't guarantee the latest date-fns is working correctly with DayPicker 8. For example, with {
"overrides": {
"react-day-picker": {
"date-fns": "^4.0.0"
}
}
} Let us know if it works for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To reproduce
There is a peer-dependency error when installing date-fns alongside react-day-picker, there seems to be a
version mismatch between the two libraries.
Because react-day-picker's date-fns dependecy is a lower version compared to the date-fns
Actual Behavior
Expected Behavior
No errors when date-fns and react-day-picker are both installed.
Current solution
Downgrading to a lower version or ignoring the important flags via package installation,
Beta Was this translation helpful? Give feedback.
All reactions