Couldn't find a result from browsing. I keep getting this error, although it worked fine when I first built this app, I can't get through authentication in deployed app as well as different machines. It says that it can't find [...nextAuth].js
although it's there. Think you guys can help?
[next-auth][error][MISSING_NEXTAUTH_API_ROUTE_ERROR]
https://next-auth.js.org/errors#missing_nextauth_api_route_error Cannot find [...nextauth].{js,ts} in /pages/api/auth. Make sure the filename is written correctly. MissingAPIRoute [MissingAPIRouteError]: Cannot find [...nextauth].{js,ts} in /pages/api/auth. Make sure the filename is written correctly.
at assertConfig (C:\Users\ahadh\Desktop\tail-tale\node_modules\next-auth\core\lib\assert.js:21:12)
at NextAuthHandler (C:\Users\ahadh\Desktop\tail-tale\node_modules\next-auth\core\index.js:34:52)
at NextAuthNextHandler (C:\Users\ahadh\Desktop\tail-tale\node_modules\next-auth\next\index.js:21:51)
at C:\Users\ahadh\Desktop\tail-tale\node_modules\next-auth\next\index.js:57:38
at Object.apiResolver (C:\Users\ahadh\Desktop\tail-tale\node_modules\next\dist\server\api-utils\node.js:184:15)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async DevServer.runApi (C:\Users\ahadh\Desktop\tail-tale\node_modules\next\dist\server\next-server.js:381:9)
at async Object.fn (C:\Users\ahadh\Desktop\tail-tale\node_modules\next\dist\server\base-server.js:491:37)
at async Router.execute (C:\Users\ahadh\Desktop\tail-tale\node_modules\next\dist\server\router.js:213:36) {
code: 'MISSING_NEXTAUTH_API_ROUTE_ERROR'
}
Image Errors | NextAuth.js This is a list of errors output from NextAuth.js. if anyone can help I would love to share the GitHub repo.