How to resolve next-auth/client module not found issue on Nextjs [duplicate]
Asked Answered
R

1

5

I am working on a nextjs project using Prisma and GitHub auth, after running npm run dev project fail to compile as shown in the image below;

Failed to compile

How do I resolve this issue?

package.json below

{
  "name": "hello-next",
  "version": "1.0.0",
  "description": "",
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start"
  },
  "keywords": [],
  "author": "",
  "license": "MIT",
  "dependencies": {
    "@prisma/client": "^3.6.0",
    "next": "^12.0.7",
    "next-auth": "^4.0.5",
    "react": "16.14.0",
    "react-dom": "16.14.0",
    "react-markdown": "5.0.2"
  },
  "devDependencies": {
    "@types/next-auth": "3.1.14",
    "@types/node": "14.14.6",
    "@types/react": "16.9.56",
    "prisma": "^3.6.0",
    "typescript": "4.5.4"
  }
}
Ridglea answered 21/12, 2021 at 19:28 Comment(1)
Does this answer your question: "next-auth/react" module not found when making custom email sign in page in next-auth? You should use next-auth/react on next-auth v4.Uncomfortable
P
14

next-auth/client has been renamed

Pathos answered 21/12, 2021 at 20:13 Comment(1)
Spoiler, to: next-auth/react. (atm)Airworthy

© 2022 - 2024 — McMap. All rights reserved.