nextjs项目在 npm run build的时候报错了,报错信息如下 Types of property 'searchParams' are incompatible
nextjs项目在 npm run build的时候报错了,报错信息如下 Type error: Type ‘{ searchParams: { paymentIntentId?: string | undefined; orderId?: string | undefined; }; }’ does not satisfy the constraint ‘PageProps’. Types of property ‘searchParams’ are incompatible. Type ‘{ paymentIntentId?: string | undefined; orderId?: string | undefined; }’ is missing the following properties from type ‘Promise‘: then, catch, finally, [Symbol.toStringTag]
nextjs项目在 npm run build的时候报错了,报错信息如下 Type error: Type ‘{ searchParams: { paymentIntentId?: string | undefined; orderId?: string | undefined; }; }’ does not satisfy the constraint ‘PageProps’. Types of property ‘searchParams’ are incompatible. Type ‘{ paymentIntentId?: string | undefined; orderId?: string | undefined; }’ is missing the following properties from type ‘Promise‘: then, catch, finally, [Symbol.toStringTag]