Skip to content

New project with React 19 cannot install library #118

@lambda0xff

Description

@lambda0xff

Describe the bug

With new NextJS project, library cannot be installed with React 19

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  1. create new NextJS project
  2. try and install library

Expected behavior

The library should install even when using React 19

Screenshots or Videos

npm install react-square-web-payments-sdk
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: website@0.1.0
npm error Found: react@19.1.0
npm error node_modules/react
npm error react@"19.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16 || ^17 || ^18" from react-square-web-payments-sdk@3.2.4-beta.1
npm error node_modules/react-square-web-payments-sdk
npm error react-square-web-payments-sdk@"*" 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.

Platform

  • OS: Linux
  • Browser: n/a
  • Version: n/a

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions