Error: no serverless pages were built
Unanswered
Alligator mississippiensis posted this in #help-forum
Alligator mississippiensisOP
When I run "npm run build" it runs successfully locally. But it is interesting I see this error on my Vercel Deployment
9 Replies
Alligator mississippiensisOP
Here is my build logs:
[12:15:03.226] Running build in Washington, D.C., USA (East) – iad1
[12:15:03.354] Cloning github.com/cannibalhulk/SWStudio (Branch: master, Commit: f4ad116)
[12:15:03.740] Previous build cache not available
[12:15:03.892] Cloning completed: 538.173ms
[12:15:04.182] Running "vercel build"
[12:15:04.647] Vercel CLI 36.0.0
[12:15:05.054] Installing dependencies...
[12:15:25.068]
[12:15:25.068] added 547 packages in 20s
[12:15:25.068]
[12:15:25.068] 213 packages are looking for funding
[12:15:25.068] run `npm fund` for details
[12:15:25.092] Detected Next.js version: 14.2.5
[12:15:25.096] Detected `package-lock.json` generated by npm 7+
[12:15:25.096] Running "npm run build"
[12:15:27.479]
[12:15:27.479] > play-nextjs@2.0.0 build
[12:15:27.479] > next build & prisma generate
[12:15:27.479]
[12:15:28.298] Prisma schema loaded from prisma/schema.prisma
[12:15:28.315] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[12:15:28.315] This information is used to shape Next.js' roadmap and prioritize features.
[12:15:28.316] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[12:15:28.316] https://nextjs.org/telemetry
[12:15:28.316]
[12:15:28.404] ▲ Next.js 14.2.5
[12:15:28.405]
[12:15:28.522] Creating an optimized production build ...
[12:15:28.885]
[12:15:28.886] ✔ Generated Prisma Client (v5.18.0) to ./node_modules/@prisma/client in 67ms
[12:15:28.886]
[12:15:28.886] Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)
[12:15:28.886] [12:15:28.886] Tip: Easily identify and fix slow SQL queries in your app. Optimize helps you enhance your visibility: https://pris.ly/--optimize
[12:15:28.886]
[12:15:29.093] Found next.config.js:
[12:15:29.094] /** @type {import('next').NextConfig} */
[12:15:29.094] const nextConfig = {
[12:15:29.094] }
[12:15:29.094]
[12:15:29.094] module.exports = nextConfig
[12:15:29.094]
[12:15:29.094]
[12:15:29.099] Error: No serverless pages were built
[12:15:29.100] Learn More: https://err.sh/vercel/vercel/now-next-no-serverless-pages-built
[12:15:34.054] I am using node version of 20.11.0
my Next.js version :
14.2.5@Alligator mississippiensis bash
[12:15:28.886] Tip: Easily identify and fix slow SQL queries in your app. Optimize helps you enhance your visibility: https://pris.ly/--optimize
[12:15:28.886]
[12:15:29.093] Found next.config.js:
[12:15:29.094] /** @type {import('next').NextConfig} */
[12:15:29.094] const nextConfig = {
[12:15:29.094] }
[12:15:29.094]
[12:15:29.094] module.exports = nextConfig
[12:15:29.094]
[12:15:29.094]
[12:15:29.099] Error: No serverless pages were built
[12:15:29.100] Learn More: https://err.sh/vercel/vercel/now-next-no-serverless-pages-built
[12:15:34.054]
you might want to take a look at this link to view possible fixed and possible reasons why this error is thrown: https://err.sh/vercel/vercel/now-next-no-serverless-pages-built
Alligator mississippiensisOP
I tried what the link says, but none of that seems to help me fix this error
my local build output
@B33fb0n3 how can I achieve this part:
Is it specific file or what?
Is it specific file or what?
Alligator mississippiensisOP
@ididntdoshi @European sprat sorry guys, mentioned you , could you help me ?