Npm run build throws error

Could anyone please help?

builder-app@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 …Failed to compile.

.next/types/app/[…page]/page.ts:34:29
Type error: Type ‘PageProps’ does not satisfy the constraint ‘import(“C:/Usersbuilder-app/.next/types/app/[…page]/page”).PageProps’.
Types of property ‘params’ are incompatible.
Type ‘{ page: string; }’ is missing the following properties from type ‘Promise’: then, catch, finally, [Symbol.toStringTag]

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