steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.65k stars 406 forks source link

Cant install Nodemailer #87

Closed tejashVaishnav closed 1 month ago

tejashVaishnav commented 1 month ago

While resolving: precedent@0.1.0 npm error Found: react@18.3.1 npm error node_modules/react npm error react@"18.3.1" from the root project npm error peer react@"^17.0.2 || ^18" from next-auth@4.24.7 npm error node_modules/next-auth npm error next-auth@"^4.22.1" from the root project npm error peer next-auth@"^4" from @next-auth/prisma-adapter@1.0.7 npm error node_modules/@next-auth/prisma-adapter npm error @next-auth/prisma-adapter@"^1.0.7" from the root project npm error npm error Could not resolve dependency: npm error peer react@"19.0.0-beta-4508873393-20240430" from next@14.3.0-canary.57 npm error node_modules/next npm error next@"14.3.0-canary.57" 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.

Degraded next to 14.2.0 but still can import nodemailer

tejashVaishnav commented 1 month ago

just resolved this by running

npm i --save-dev @types/nodemailer