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

Upgrading react version to 18 in examples generated via cli as Stripe already supports its #1979

Open
maxkokocom opened this issue Sep 2, 2023 · 1 comment

Comments

@maxkokocom
Copy link

Bug report

Describe the bug

Generated examples via stripe samples create accept-a-payment use react 17 while stripe already claims support for react 18: stripe/react-stripe-js#273

To Reproduce

stripe samples create accept-a-payment

@hideokamoto-stripe
Copy link
Contributor

Thank you for the report. The react sample was created using Create React App. The error reported seems to be due to a library used internally by Create React App:
facebook/create-react-app#11708 (comment)

As there seems to be no releases from Create React App from the year 2022, it may be necessary to consider migrating to something like Vite.
As a temporary workaround, please use NODE_OPTIONS='--openssl-legacy-provider' option like the following:
NODE_OPTIONS='--openssl-legacy-provider' react-scripts start

Best.

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

2 participants