Achronus / create-api-app

A quickstart tool for creating FastAPI projects with a NextJS frontend.
https://create.achronus.dev/
MIT License
0 stars 0 forks source link

Npm install fail - Stripe dependency error #5

Closed Achronus closed 3 months ago

Achronus commented 3 months ago

Running npm install creates a Stripe error:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: frontend@0.1.0
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 C:\Users\rpart\AppData\Local\npm-cache\_logs\2024-06-26T15_54_23_664Z-eresolve-report.txt

npm error A complete log of this run can be found in: C:\Users\rpart\AppData\Local\npm-cache\_logs\2024-06-26T15_54_23_664Z-debug-0.log

Temporary fix - remove @stripe/react-stripe-js, @stripe/stripe-js from package.json, then run:

npm install --save @stripe/react-stripe-js @stripe/stripe-js
Achronus commented 3 months ago

Resolved in latest DockerFile update for the build-nextjs-app tool.