mickasmt / next-saas-stripe-starter

Open-source SaaS Starter with User Roles & Admin Panel. Built using Next.js 14, Prisma, Neon, Auth.js v5, Resend, React Email, Shadcn/ui, Stripe, Server Actions.
https://next-saas-stripe-starter.vercel.app
MIT License
1.95k stars 354 forks source link

Dependency issue when cloning the repository #26

Closed aalhayali closed 7 months ago

aalhayali commented 7 months ago

I tried cloning and installing the dependencies, and also cloning the repo through VSCode's UI And using npm install, same issue shows.

C:\Users\abdul\Desktop\sandbox\landing-page>npm install
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: saas-starter@0.1.0
npm ERR! Found: react@18.3.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR!   peer react@"^16.8.0 || ^17 || ^18" from react-hook-form@7.51.3
npm ERR!   node_modules/react-hook-form
npm ERR!     react-hook-form@"^7.51.3" from the root project
npm ERR!     peer react-hook-form@"^7.0.0" from @hookform/resolvers@3.3.4
npm ERR!     node_modules/@hookform/resolvers
npm ERR!       @hookform/resolvers@"^3.3.4" from the root project
npm ERR!   29 more (@radix-ui/react-accessible-icon, react-dom, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @react-email/button@"0.0.14" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"18.2.0" from @react-email/button@0.0.14
npm ERR!   node_modules/@react-email/button
npm ERR!     @react-email/button@"0.0.14" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\abdul\AppData\Local\npm-cache\_logs\2024-04-26T00_40_35_346Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\abdul\AppData\Local\npm-cache\_logs\2024-04-26T00_40_35_346Z-debug-0.log

Originally posted by @aalhayali in https://github.com/mickasmt/next-saas-stripe-starter/issues/24#issuecomment-2078399774

mickasmt commented 7 months ago

@aalhayali Thanks for the report! I work on it. An issue has been opened on react-email for this bug. This happened after react@18.3 was released. You can check here

MatiasVerdier commented 7 months ago

if you need a temporary solution https://github.com/resend/react-email/issues/1432#issuecomment-2079279920

mickasmt commented 7 months ago

@aalhayali It works after the new commit cabad13. @MatiasVerdier Thank you for your help. I appreciate it!