Skip to content

Declared peer dependency forbids latest version of @stripe/stripe-js@4.0.0 #511

@vxsx

Description

@vxsx

What happened?

Trying to install latest versions of this and @stripe/stripe-js doesn't work due to the way peer dependency is declared in https://github.com/stripe/react-stripe-js/blob/master/package.json#L111

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: REDACTED
npm error Found: @stripe/stripe-js@4.0.0
npm error node_modules/@stripe/stripe-js
npm error   @stripe/stripe-js@"^4.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @stripe/stripe-js@"^1.44.1 || ^2.0.0 || ^3.0.0" from @stripe/react-stripe-js@2.7.1
npm error node_modules/@stripe/react-stripe-js
npm error   @stripe/react-stripe-js@"^2.7.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/REDACTED/.npm/_logs/2024-06-27T11_30_54_966Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/REDACTED/.npm/_logs/2024-06-27T11_30_54_966Z-debug-0.log

I am not 100% sure if it's a matter of simply updating the allowed version or if actual work is required here

Environment

No response

Reproduction

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions