-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Description
Hello,
I am trying to install react-headroom using the following npm command:
npm i react-headroomHowever, I am encountering the following error:
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: next-kitmanager@0.1.0
npm error Found: react@19.0.0
npm error node_modules/react
npm error react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.3.0 || ^17 || ^18" from react-headroom@3.2.1
npm error node_modules/react-headroom
npm error react-headroom@"*" from the root project
npm error
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 issue seems to be related to the version of React I am using (19.0.0). react-headroom@3.2.1 supports only React versions 16.x, 17.x, and 18.x, leading to a dependency conflict.
I would like to know if there is any solution to resolve this version incompatibility or if there are plans to release an update to react-headroom that supports React 19.x.
Thanks in advance for your help!
Environment:
React version: 19.0.0
Next.js version: 15.1.6
Node version: 22.13.1
npm version: 10.9.2
Metadata
Metadata
Assignees
Labels
No labels