It is server sided page.tsx
Error: Route "/pos/[merchantID]" used params.merchantID. params should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis
[1] at CheckoutPage (file://C%3A/Users/a/Desktop/a/app/pos/%5BmerchantID%5D/page.tsx:9:28)
[1] 7 |
[1] 8 | async function CheckoutPage({ params }: { params: { merchantID: string } }) {
[1] > 9 | const merchantID = params.merchantID;
[1] | ^
[1] 10 |
[1] 11 | if (!merchantID || !isValidObjectId(merchantID)) return NotFound();
Learn more about why accessing certain APIs synchronously now warns.