Module not found in vercel deployment: './api/auth/[...nextAuth]' #4923
Answered
by
soymartinez
soymartinez
asked this question in
Help
-
I'm trying to deploy my app with Next.js and Next-Auth, but when I start the build in Vercel I get an error. The error is an import from [...nextAuth].js when I use unstable_getServerSession and "authOptions" is required. |
Beta Was this translation helpful? Give feedback.
Answered by
soymartinez
Jul 14, 2022
Replies: 1 comment
-
Well the solution is |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
soymartinez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well the solution is
import {authOptions} from './api/auth/[...nextauth]'
, at first the import was done with camelcase lol, that's where the error comes from.