Skip to content

[package.json]: Conflicting peer dependency #6767

@jpw1012

Description

@jpw1012

Describe the bug

"react-table": "7.8.0" has a peer dependency of "react": "^16.8.3 || ^17.0.0-0 || ^18.0.0"
This conflicts with current peer-dependency "react": "^18 || ^19".

My project has a dependency of "react": "^19.0.0". I see warnings when running npm install: Conflicting peer dependency: react@18.3.1

Isolated Example

No response

Reproduction steps

npm install react react-dom
npm install @ui5/webcomponents @ui5/webcomponents-react @ui5/webcomponents-fiori
outputs:
npm warn ERESOLVE overriding peer dependency

Expected Behaviour

react 19 should not cause any conflicting dependency warnings. We do not see any issues using react 19, however we do not use the Analytical tables.

Screenshots or Videos

No response

UI5 Web Components for React Version

2.5.0

UI5 Web Components Version

2.5.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: react-table@7.8.0
npm warn Found: react@19.0.0
npm warn node_modules/react
npm warn   react@"^19.0.0" from the root project
npm warn   6 more (@tanstack/react-virtual, @ui5/webcomponents-react, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.8.3 || ^17.0.0-0 || ^18.0.0" from react-table@7.8.0
npm warn node_modules/@ui5/webcomponents-react/node_modules/react-table
npm warn   react-table@"7.8.0" from @ui5/webcomponents-react@2.5.0
npm warn   node_modules/@ui5/webcomponents-react
npm warn
npm warn Conflicting peer dependency: react@18.3.1
npm warn node_modules/react
npm warn   peer react@"^16.8.3 || ^17.0.0-0 || ^18.0.0" from react-table@7.8.0
npm warn   node_modules/@ui5/webcomponents-react/node_modules/react-table
npm warn     react-table@"7.8.0" from @ui5/webcomponents-react@2.5.0
npm warn     node_modules/@ui5/webcomponents-react

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions