Replies: 3 comments 4 replies
-
same issues, any progress? |
Beta Was this translation helpful? Give feedback.
-
Any news ?
I'm getting this error after init the edge config from the doc https://authjs.dev/guides/edge-compatibility I just follow the instruction and get that error. But as he said, the app works perfectly. |
Beta Was this translation helpful? Give feedback.
-
same issue. any updates? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, first-time next-auth user here 👋
I wanted to build a "modern" app using Next.js, Auth.js, and Prisma, with the login working through magic links.
I could get the app working on the first try, but I was receiving these errors, so I started investigating:
The app worked at this point. Sendgrid sent out magic links, I could log in, and a session was created in the db. The error messages frustrated me.
After some time I found this blog post that seemingly offered a solution to this problem: https://authjs.dev/guides/edge-compatibility#middleware.
I followed everything here, and now I'm getting a different error, but the app still works!
I don't understand what's happening, and any input is valuable because this (found at https://errors.authjs.dev#missingadapter):
Doesn't seem to be true. From the blog post I configured:
in
auth.ts
and I have the email provider configured inauth.config.ts
:Thanks!
EDIT
I believe you also have two typos in your docs https://authjs.dev/guides/edge-compatibility#middleware:
auth.ts
thisimport authConfig from "auth.config"
should beimport authConfig from "./auth.config"
middleware.ts
thisexport const { auth as middleware } = NextAuth(authConfig)
gives me a parsing error, are you sure it's notexport const { auth: middleware } = NextAuth(authConfig)
?Beta Was this translation helpful? Give feedback.
All reactions