Skip to content

"Error: The Edge Function "middleware" is referencing unsupported modules: crypto" upon deployment to vercel with next-auth #45384

Answered by tungvn
Tasselhat asked this question in Help
Discussion options

You must be logged in to vote

I got the same issue and found a way to fix it.

In the Project Settings > Build & Development Settings, I changed the Framework Presets from Others to Next.js and it worked perfectly.

Hope it help!

Replies: 5 comments 30 replies

Comment options

You must be logged in to vote
19 replies
@icyJoseph
Comment options

@khuezy
Comment options

@marco-digennaro
Comment options

@muke5hy
Comment options

@marco-digennaro
Comment options

Comment options

You must be logged in to vote
1 reply
@IonelLupu
Comment options

Comment options

You must be logged in to vote
1 reply
@IonelLupu
Comment options

Comment options

You must be logged in to vote
8 replies
@arpit3210
Comment options

@khitishkumar18
Comment options

@arpit3210
Comment options

@ashishsah1000
Comment options

@maxeth
Comment options

Answer selected by Tasselhat
Comment options

You must be logged in to vote
1 reply
@ashishsah1000
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet