Skip to content

Cannot Build The Application #76142

@GalaxyBuilder-oss

Description

@GalaxyBuilder-oss

Link to the code that reproduces this issue

https://github.com/GalaxyBuilder-oss/portofolios

To Reproduce

When i run Bun run build this error happen:

$ bun run build
$ prisma generate && next build
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma

✔ Generated Prisma Client (v5.22.0) to .\node_modules@prisma\client in 149ms

Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)

Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse

▲ Next.js 15.1.7

  • Environments: .env
  • Experiments (use with caution):
    · turbo

Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ..Failed to compile.

.next/types/app/p/[id]/page.ts:34:13
Type error: Type 'OmitWithTag<{ children?: ReactNode; }, keyof PageProps, "default">' does not satisfy the constraint '{ [x: string]: never; }'.
Property 'children' is incompatible with index signature.
Type 'boolean | ReactChild | ReactFragment | ReactPortal | null' is not assignable to type 'never'.
Type 'null' is not assignable to type 'never'.

32 |
33 | // Check the prop type of the entry function

34 | checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
| ^
35 |
36 | // Check the arguments and return type of the generateMetadata function
37 | if ('generateMetadata' in entry) {
Next.js build worker exited with code: 1 and signal: null
error: script "build" exited with code 1

Current vs. Expected behavior

before its run normally, but immediately when i run it again, is not working

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 3858
  Available CPU cores: 4
Binaries:
  Node: 23.8.0
  npm: 10.9.2
  bun: 1.2.2
Relevant Packages:
  next: 15.1.7 // Latest available version is detected (15.1.7).
  eslint-config-next: 13.5.8
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.3

Which area(s) are affected? (Select all that apply)

Pages Router

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pages RouterRelated to Pages Router.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions