Next.js 15: Error: Route "/blog/[slug]" used `params.slug`. `params` should be awaited before using its properties
In Next.js 15 params and searchParams are Promises; reading properties synchronously triggers this error/warning.
Route "/blog/[slug]" used `params.slug`. `params` should be awaited before using its propertiesError: Route used `params.id`. `params` should be awaited before using its properties`params` should be awaited before using its propertiesRoute used `searchParams.q`. `searchParams` should be awaitedsync-dynamic-apis params Meaning
Make the page/layout/route handler async and await params: const { slug } = await params. In Client Components use React.use(params). A codemod helps: npx @next/codemod@canary next-async-request-api .. Same for cookies(), headers() and draftMode().
Common causes
- Upgrading to Next.js 15 without migration
- Typing
paramsas an object not a Promise - Route handlers using
context.params.id - generateMetadata reading params synchronously
- Client Component reading params directly
⚡ Quick fix
export default async function Page({ params }: { params: Promise<{ slug: string }> }) { const { slug } = await params; }- Client:
const { slug } = use(params) - Run the async-request-api codemod
Detailed fix by platform
Next.js
npx @next/codemod@canary next-async-request-api .
How to diagnose
- Version — Next 15+?
- Types — Promise<...>?
- Context — Server or client?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Conflicting app and page file was found Next.js: ⨯ Conflicting app and page file was found, please remove the conflicting files to continue: "pages/index.tsx" - "app/page.tsx"
- cookies() should be awaited Next.js 15: Route "/x" used `cookies().get('token')`. `cookies()` should be awaited before using its value
- CORS error calling Next.js API route / route handler Browser: Access to fetch at 'https://api.example.com/api/data' from origin 'https://app.example.com' has been blocked by CORS policy (Next.js route handler)
Most viewed in Next.js
- NEXT_REDIRECT Next.js: Error: NEXT_REDIRECT (redirect() inside try/catch)
- server-only Next.js: You're importing a component that needs "server-only". That only works in a Server Component
- Module not found: Can't resolve 'x' (Next.js build) Next.js: Module not found: Can't resolve '@/components/Button' / 'lodash' in '/app/src'
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026