-
Notifications
You must be signed in to change notification settings - Fork 16
fix: Dependency conflict: [email protected] not compatible with [email protected] #23
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinghacktoberfestIssues participating in HacktoberfestIssues participating in Hacktoberfest
Description
Describe the bug
Currently the repo's package.json specifies:
- date-fns: ^4.1.0
- react-day-picker: ^8.10.1
However, [email protected] declares a peer dependency of
date-fns ^2.28.0 || ^3.0.0 and does not support v4.
To Reproduce
Steps to reproduce the behavior:
- Clone the repo
- Run
npm install - Installation fails with ERESOLVE dependency conflict.
Expected behavior
Dependencies should install cleanly without conflict.
Screenshots
Environment
- OS: Ubuntu 22.04
- Browser: Chrome
- Node version: v20.19.4
- App version/commit: 4457957 (Sep 29, 2025)
Additional context
This seems to be caused by a dependency mismatch:
- [email protected] has a peer dependency of date-fns ^2.28.0 || ^3.0.0
- The repo currently specifies date-fns ^4.1.0, which is not supported yet.
Possible solutions:
- Downgrade date-fns to ^3.x (e.g. 3.6.0), or
- Upgrade react-day-picker once it adds support for date-fns v4.
For now, running npm install --legacy-peer-deps bypasses the error, but it may lead to runtime issues.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghacktoberfestIssues participating in HacktoberfestIssues participating in Hacktoberfest