tippyjs-react icon indicating copy to clipboard operation
tippyjs-react copied to clipboard

Dependency Issue with NextJS 15, React 19 RC and @tippyjs/react

Open freddymu opened this issue 1 year ago • 0 comments

Description: I'm encountering a dependency resolution issue while trying to install my project dependencies using NPM. The command I am executing is:

npm install

However, I receive the following error related to the React version and its peer dependencies:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @tippyjs/[email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0-rc-02c0e824-20241028" from the root project
npm error   peer react@"^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" from @radix-ui/[email protected]
npm error   node_modules/@radix-ui/react-arrow
npm error     @radix-ui/react-arrow@"1.1.0" from @radix-ui/[email protected]
npm error     node_modules/@radix-ui/react-popper
npm error       @radix-ui/react-popper@"1.2.0" from @radix-ui/[email protected]
npm error       node_modules/@radix-ui/react-menu
npm error         @radix-ui/react-menu@"2.1.2" from @radix-ui/[email protected]
npm error         node_modules/@radix-ui/react-dropdown-menu
npm error       1 more (@radix-ui/react-popover)
npm error   31 more (@radix-ui/react-collection, @radix-ui/react-context, ...)
npm error
npm error Could not resolve dependency:
npm error peer react@">=16.8" from @tippyjs/[email protected]
npm error node_modules/@tippyjs/react
npm error   @tippyjs/react@"^4.2.6" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error   peer react@">=16.8" from @tippyjs/[email protected]
npm error   node_modules/@tippyjs/react
npm error     @tippyjs/react@"^4.2.6" from the root project

Environment:

  • Node Version: v20.17.0
  • NPM Version: v10.8.2
  • React Version: 19.0.0-rc-02c0e824-20241028
  • Operating System: Ubuntu 22.04

Question: Is there any plan to upgrade Tippyjs React to React 19 RC ? Installing using --legacy-peer-deps is not allowed in my environment.

freddymu avatar Nov 07 '24 10:11 freddymu