In one of the page's unstable_getStaticPaths
the return value had the incorrect shape.
Make sure to return the following shape from unstable_getStaticPaths
:
export async function unstable_getStaticProps() {
return {
paths: Array<string | { params: { [key: string]: string } }>
}
}