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 357 forks source link

Am getting a peer dependancy error while trying to clone and run the project #24

Closed justinelut closed 7 months ago

justinelut commented 7 months ago

image, check the screenshot above

mickasmt commented 7 months ago

Hi @justinelut thank you for your report! Currently, I am working on upgrading the eslint file to version 9. The new file will be available soon and will address this issue.

zplzpl commented 7 months ago

hello any news?

mickasmt commented 7 months ago

Hey @zplzpl @justinelut, I downgraded the eslint package from v9 to v8.57 because it was causing an error during repo cloning at the time of installation. Additionally, v9 support is still undergoing active maintenance, and I was receiving warnings during my local tests with the new file eslint.config.js. You can tracking the support update for the v9 here.

aalhayali commented 7 months ago

Another dependency error came up for some reason.

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