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

[BUG] Doesn't work with React 18.0 #123

Open
kamzata opened this issue Mar 30, 2022 · 7 comments
Open

[BUG] Doesn't work with React 18.0 #123

kamzata opened this issue Mar 30, 2022 · 7 comments

Comments

@kamzata
Copy link

kamzata commented Mar 30, 2022

Software Package Version: 2.6.3

The buttons are loaded twice and I receive those errors on console. The buttons are loaded inside a MUI v5 modal window.

image

image

Desktop:

  • OS: MacOS 12.3
  • Browser: Chrome 99.0.4844.74
  • React Version: 18.0
@yashar98
Copy link

i can't instal package.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
.
.
.

@Nolazo
Copy link

Nolazo commented Jul 14, 2022

Yep, I got this err.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.6 || 15.x.x || 16.x.x || 17.x.x" from [email protected]
npm ERR! node_modules/react-paypal-button-v2
npm ERR! react-paypal-button-v2@"*" from the root project

@hrootscraft
Copy link

image

Yes, trying to solve this error since a month now.
Got the above with

npm list react

And getting the error below when trying to deploy on heroku
image

@ronTabachnik
Copy link

same here...

@ivanoats
Copy link

ivanoats commented Jan 2, 2023

Use npm install react-paypal-button-v2 --legacy-peer-deps until React 8 compatibility is specified.

@randyumi
Copy link

I think https://www.npmjs.com/package/@paypal/react-paypal-js is PayPal officially released library and implements what react-paypal-button-v2 doing. Is there anything not to be implemented by react-paypal-js?

@devuxer
Copy link

devuxer commented Mar 11, 2024

--legacy-peer-deps works, but it papers over all peer dep issues for your whole project, so this really isn't an ideal workaround.

It honestly looks like this library has been abandoned (no commits for 2 years).

@Luehang, if you can't support this anymore, can you let someone else take this over or provide a path forward for those using this library?

Meanwhile, I'll look into @paypal/react-paypal-js (thanks for the tip, @randyumi).

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

8 participants