Replies: 1 comment
-
Hi, Since Next 15 the export default async function CarDetailsPage({
params,
}: {
params: Promise<{ slug: string }>;
}) {
const { slug } = await params;
const car = await fetchSanityQuery(getCarBySlugQuery, { slug }); This change set should do the trick. |
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
I have been trying to deploy my code for almost an hour and I keep getting this same error over and over again.
I have included my code down below.
Some help on this would be greatly appreciated!
FULL ERROR MESSAGE:
app/inventory/[slug]/page.tsx
Type error: Type '{ params: { slug: string; }; }' does not satisfy the constraint 'PageProps'.
Types of property 'params' are incompatible.
Type '{ slug: string; }' is missing the following properties from type 'Promise': then, catch, finally, [Symbol.toStringTag]
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions