Cannot Build The Application #76165
Replies: 3 comments 1 reply
-
Nextjs 15 introduced some breaking changes, where the pageprops are now Promises. This might help you out: #71997. |
Beta Was this translation helpful? Give feedback.
-
In my case, this issue remains after downgrading from 15.x.x to 14.2.3. After removing |
Beta Was this translation helpful? Give feedback.
-
@eltongonc thank you for help, but i found the problem that i use React.FC in each page.tsx without props, i think its the problem for me, so i removed them and it works. i never though that can be the problem |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
· 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
Current vs. Expected behavior
before its run normally, but immediately when i run it again, is not working
Provide environment information
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
Beta Was this translation helpful? Give feedback.
All reactions