paypal-js
paypal-js copied to clipboard
[Feature] Support for React 19
🚀 Prepare for React 19 support
I know it's a bit early, and the latest React 19 is still a RC, but things are moving on, Next released v15 with a dependency, and it would be nice if PayPal's React library supports it sooner than later.
Motivation
There might be some issues or changes required in order to support React 19. Shouldn't be, but still. The sooner someone tests that and confirms the library can support the newest React - the better.
Thanks!
I have installed using:
npm i --legacy-peer-deps
It is currently working.
Let's hope a fully compatible version comes out soon.
React v19 stable is out
[!NOTE] https://react.dev/blog/2024/12/05/react-19 React v19 Release Post
Description:
We are in the process of upgrading our project to React v19, but have encountered an issue with the react-paypal-js package. The current version of react-paypal-js (v8.7.0) does not explicitly support React v19, and as a result, we're getting the following error when trying to install dependencies:
Error log:
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @paypal/[email protected]
Steps to Reproduce:
- Upgrade the project to React v19.
- Attempt to install dependencies using
npm installoryarn install. - Observe the error regarding the peer dependency mismatch.
Can you please provide an update for react-paypal-js to support React v19?
Thanks!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
bump
bump
bump
@wsbrunson is this fixed?
bump
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Bump
This is currently the only dependency preventing my project from upgrading to React 19. All other dependencies are compatible, but @paypal/react-paypal-js peer dependency restriction to React 16-18 is blocking the entire upgrade.
Using --legacy-peer-deps for payment processing code feels risky without official support. Please add React 19 to the peer dependencies. Even if it's just updating the package.json to include "^19.0.0" while testing continues, it would unblock those of us who need to upgrade.
@gregjopa @devpato @wsbrunson @danzhaaspaypal @sebastianfdz I'm sorry guys, adding you here as a last hope that someone sees this issue. It's been almost an entire year! And as @aabele said - at least put ^19.0.0 as a dep!
It really feels super unprofessional, and I'm struggling to have to deal with this thing.
Primarily because of this (and lack of other features) I moved away from PayPal and integrated Stripe last week.