Error: Route #81468
Unanswered
rampyyadav
asked this question in
Help
Error: Route
#81468
Replies: 1 comment
-
Hi, Yes, version 15 included breaking changes, https://nextjs.org/blog/next-15#async-request-apis-breaking-change I can guess you need to do this: export default async function Page({
searchParams,
}: {
searchParams: Promise<{ [key: string]: string | string[] | undefined }>
}) {
const { max_salary } = await searchParams
// rest of impl
} Share a bit more and I can help you more precisely |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Error: Route "/job-search-result" used
searchParams.max_salary
.searchParams
should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apisat JobSearchResult (app/job-search-result/page.tsx:33:55)
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions