Lenovo@LAPTOP-JB97L9FH MINGW64 /d/_Web_Dev/__Front-End Staff/company project/MhurIntern[277]/MhurIntern (main)
$ npm run build
mhur@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
✓ Linting and checking validity of types
Collecting page data …[Error: Cannot find module ‘D:_Web_Dev__Front-End Staff\company project\MhurIntern[277]\MhurIntern\node_modules\next\server’ imported from D:_Web_Dev__Front-End Staff\company project\MhurIntern[277]\MhurIntern\node_modules\next-auth\lib\env.js
Did you mean to import “next/server.js”?] {
code: ‘ERR_MODULE_NOT_FOUND’,
url: ‘file:///D:/_Web_Dev/__Front-End%20Staff/company%20project/MhurIntern[277]/MhurIntern/node_modules/next/server’
}
Build error occurred
[Error: Failed to collect page data for /LandingPage] { type: ‘Error’ }
facing this issues after I’ve started building it locally with next-auth@beta and Next.js 15.1.7
you can ask me for further information