You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As soon as you add Nodemailer the auth.ts, middleware stops working, throwing below error
⨯ Error: The edge runtime does not support Node.js 'stream' module.
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime
or maybe this error
⨯ node_modules/.pnpm/nodemailer@6.9.13/node_modules/nodemailer/lib/base64/index.js (56:0) @ <unknown>
⨯ Class extends value undefined is not a constructor or null
null
disabling middleware or downgrading to next-auth 4 both fixes this issue.
So this bug is next-auth 5 only.
How to reproduce
add Nodemailer provider to the auth.ts and enable middleware
Expected behavior
everything should work fine.
The text was updated successfully, but these errors were encountered:
But the error is occurring on my local machine, maybe I'm on the edge, my computer definitely isn't.
per my Environment section, I'm using Node 21 on a Linux machine. @balazsorban44
Provider type
Email
Environment
Reproduction URL
https://github.com/arslan2012/nodemailer-test
Describe the issue
As soon as you add Nodemailer the auth.ts, middleware stops working, throwing below error
or maybe this error
disabling middleware or downgrading to next-auth 4 both fixes this issue.
So this bug is next-auth 5 only.
How to reproduce
add Nodemailer provider to the auth.ts and enable middleware
Expected behavior
everything should work fine.
The text was updated successfully, but these errors were encountered: