steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.

Home Page:https://precedent.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cant install Nodemailer

tejashVaishnav opened this issue · comments

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

just resolved this by running

npm i --save-dev @types/nodemailer