Skip to content

React19 - @bedrock-layout/use-forwarded-ref - Dependency warning #556

Description

@tobidemski

Bug report

Describe the bug

When running npm install with react 19 I get a "Could not resolve dependency" warning for the dev dependency package "@bedrock-layout/use-forwarded-ref@2.0.17".

To Reproduce

  • Create a project with react 19
  • npm install react-responsive-modal
  • Check the console output

Expected behavior

No dependency warnings are shown and dependencies are resolved correctly.

Screenshots / Console Output

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @bedrock-layout/use-forwarded-ref@2.0.17
npm warn Found: react@19.2.4
npm warn node_modules/react
npm warn   react@"^19.2.4" from the root project
npm warn   17 more (@emotion/react, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.8 || ^17 || ^18" from @bedrock-layout/use-forwarded-ref@2.0.17
npm warn node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref
npm warn   @bedrock-layout/use-forwarded-ref@"^2.0.17" from react-responsive-modal@7.1.0
npm warn   node_modules/react-responsive-modal
npm warn
npm warn Conflicting peer dependency: react@18.3.1
npm warn node_modules/react
npm warn   peer react@"^16.8 || ^17 || ^18" from @bedrock-layout/use-forwarded-ref@2.0.17
npm warn   node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref
npm warn     @bedrock-layout/use-forwarded-ref@"^2.0.17" from react-responsive-modal@7.1.0
npm warn     node_modules/react-responsive-modal
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @bedrock-layout/use-stateful-ref@2.0.17
npm warn Found: react@19.2.4
npm warn node_modules/react
npm warn   react@"^19.2.4" from the root project
npm warn   17 more (@emotion/react, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.8 || ^17 || ^18" from @bedrock-layout/use-stateful-ref@2.0.17
npm warn node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref/node_modules/@bedrock-layout/use-stateful-ref
npm warn   @bedrock-layout/use-stateful-ref@"^2.0.17" from @bedrock-layout/use-forwarded-ref@2.0.17
npm warn   node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref
npm warn
npm warn Conflicting peer dependency: react@18.3.1
npm warn node_modules/react
npm warn   peer react@"^16.8 || ^17 || ^18" from @bedrock-layout/use-stateful-ref@2.0.17
npm warn   node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref/node_modules/@bedrock-layout/use-stateful-ref
npm warn     @bedrock-layout/use-stateful-ref@"^2.0.17" from @bedrock-layout/use-forwarded-ref@2.0.17
npm warn     node_modules/react-responsive-modal/node_modules/@bedrock-layout/use-forwarded-ref

System information

  • Version of react-responsive-modal: 7.1.0
  • Version of react: 19.2.4
  • Browser version: /

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions