-
Notifications
You must be signed in to change notification settings - Fork 47
Description
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
- create new NextJS project
- 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