Type error
Answered
Western thatching ant posted this in #help-forum
Western thatching antOP
Hi 👋! I am Trung. As you can see it is getting this type error. I am new. How do I fix that?
Answered by joulev
it should be
now
interface PageProps {
params: Promise<{
alias: string;
}>
}
now
13 Replies
it should be
now
interface PageProps {
params: Promise<{
alias: string;
}>
}
now
Answer
Western thatching antOP
so I will add await
to params?
Western thatching antOP
@joulev Wait what?
oh
i am modify other first file
fr sry
yeah this one is in a different file
you need to migrate all files where you type
params
and searchParams
Western thatching antOP
thanks.