You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm having errors on Vercel, but everything works fine on the local host. I appreciate all the help I can get.
✓ Compiled successfully in 11.0s
Linting and checking validity of types ...
Failed to compile.
app/dashboard/customers/page.tsx
Type error: Type '{ searchParams?: { [key: string]: string | string[] | undefined; } | undefined; }' does not satisfy the constraint 'PageProps'.
Types of property 'searchParams' are incompatible.
Type '{ [key: string]: string | string[] | undefined; } | undefined' is not assignable to type 'Promise | undefined'.
Type '{ [key: string]: string | string[] | undefined; }' is missing the following properties from type 'Promise': then, catch, finally, [Symbol.toStringTag]
Next.js build worker exited with code: 1 and signal: null
Error: Command "next build" exited with 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi, I'm having errors on Vercel, but everything works fine on the local host. I appreciate all the help I can get.
✓ Compiled successfully in 11.0s
Linting and checking validity of types ...
Failed to compile.
app/dashboard/customers/page.tsx
Type error: Type '{ searchParams?: { [key: string]: string | string[] | undefined; } | undefined; }' does not satisfy the constraint 'PageProps'.
Types of property 'searchParams' are incompatible.
Type '{ [key: string]: string | string[] | undefined; } | undefined' is not assignable to type 'Promise | undefined'.
Type '{ [key: string]: string | string[] | undefined; }' is missing the following properties from type 'Promise': then, catch, finally, [Symbol.toStringTag]
Next.js build worker exited with code: 1 and signal: null
Error: Command "next build" exited with 1
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions