Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support for React 19 #574

Open
codenomnom opened this issue Nov 4, 2024 · 2 comments
Open

[Feature] Support for React 19 #574

codenomnom opened this issue Nov 4, 2024 · 2 comments

Comments

@codenomnom
Copy link

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

@0zuna
Copy link

0zuna commented Dec 11, 2024

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

It is currently working.

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

@Aryanxfa
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants