next-auth get and post problem: Cannot read properties of undefined (reading 'GET') #10445
Unanswered
smertcanyilmaz
asked this question in
Help
Replies: 1 comment
-
Rather do this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am learning next.js and i am developing a project right now. I encountered a problem while learning next-auth and got stuck in the project :/
next.js version of my project is 14.1.4
src\auth.ts:
src\app\api\auth\[...nextauth\]\route.ts:
export { GET, POST } from "@/auth";
then I tried going to the signin page: http://localhost:3000/api/auth/signin
and encounter this error:
Beta Was this translation helpful? Give feedback.
All reactions