paypal-js icon indicating copy to clipboard operation
paypal-js copied to clipboard

[Feature] Support for React 19

Open codenomnom opened this issue 1 year ago • 8 comments

🚀 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!

codenomnom avatar Nov 04 '24 08:11 codenomnom

I have installed using: npm i --legacy-peer-deps

It is currently working.

Let's hope a fully compatible version comes out soon.

0zuna avatar Dec 11 '24 00:12 0zuna

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:

  1. Upgrade the project to React v19.
  2. Attempt to install dependencies using npm install or yarn install.
  3. Observe the error regarding the peer dependency mismatch.

Can you please provide an update for react-paypal-js to support React v19?

Thanks!

Aryanxfa avatar Dec 11 '24 12:12 Aryanxfa

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!

github-actions[bot] avatar Mar 12 '25 00:03 github-actions[bot]

bump

mayognaise avatar Mar 12 '25 00:03 mayognaise

bump

bjdash avatar Mar 24 '25 02:03 bjdash

bump

MalikBilal111 avatar Apr 14 '25 13:04 MalikBilal111

@wsbrunson is this fixed?

codenomnom avatar Apr 29 '25 13:04 codenomnom

bump

msbatin avatar Apr 30 '25 10:04 msbatin

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!

github-actions[bot] avatar Aug 29 '25 00:08 github-actions[bot]

Bump

mduchev avatar Aug 29 '25 01:08 mduchev

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.

aabele avatar Sep 19 '25 04:09 aabele

@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.

codenomnom avatar Sep 19 '25 16:09 codenomnom

Primarily because of this (and lack of other features) I moved away from PayPal and integrated Stripe last week.

bjdash avatar Sep 21 '25 09:09 bjdash