You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing [email protected] in a project using [email protected], an ERESOLVE error occurs due to a peer dependency conflict. The react-day-picker library specifies a peer dependency of react@^16.8.0 || ^17.0.0 || ^18.0.0, which does not include [email protected].
Steps to Reproduce
Create a project with [email protected] installed.
Add react-day-picker@^8.10.1 to the package.json.
Run npm install.
Error
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error Conflicting peer dependency: [email protected]
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
The react-day-picker library should install without peer dependency conflicts when used with [email protected].
Actual Behavior
The npm installation fails with an ERESOLVE error due to the peer dependency mismatch with [email protected].
Workaround
Using npm install --force allows the installation to proceed, but this may lead to an incorrect or potentially broken dependency resolution. Similarly, npm install --legacy-peer-deps works but is a temporary solution.
Suggestion
Please consider updating the peer dependency of react-day-picker to include support for [email protected] to ensure compatibility with the latest React versions. Alternatively, providing documentation on handling this incompatibility would be helpful.
Additional Information
The full error log is available at: /home/rayan/.npm/_logs/2025-07-16T19_04_44_515Z-eresolve-report.txt.
I am happy to provide further details or test any potential fixes.
Thank you for maintaining this library and for considering this issue!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Peer Dependency Conflict with React 19.1.0 in [email protected]
Description
When installing [email protected] in a project using [email protected], an ERESOLVE error occurs due to a peer dependency conflict. The react-day-picker library specifies a peer dependency of react@^16.8.0 || ^17.0.0 || ^18.0.0, which does not include [email protected].
Steps to Reproduce
Create a project with [email protected] installed.
Add react-day-picker@^8.10.1 to the package.json.
Run npm install.
Environment
[email protected]
[email protected]
@radix-ui/[email protected]
Expected Behavior
The
react-day-picker
library should install without peer dependency conflicts when used with[email protected]
.Actual Behavior
The npm installation fails with an
ERESOLVE
error due to the peer dependency mismatch with[email protected]
.Workaround
Using
npm install --force
allows the installation to proceed, but this may lead to an incorrect or potentially broken dependency resolution. Similarly,npm install --legacy-peer-deps
works but is a temporary solution.Suggestion
Please consider updating the peer dependency of
react-day-picker
to include support for[email protected]
to ensure compatibility with the latest React versions. Alternatively, providing documentation on handling this incompatibility would be helpful.Additional Information
/home/rayan/.npm/_logs/2025-07-16T19_04_44_515Z-eresolve-report.txt
.Thank you for maintaining this library and for considering this issue!
Beta Was this translation helpful? Give feedback.
All reactions