import type {
GetServerSidePropsContext as NextGetServerSidePropsContext,
GetServerSidePropsResult as NextGetServerSidePropsResult
} from "nextjs";
[ AFTER ]
import type {
GetServerSidePropsContext as NextGetServerSidePropsContext,
GetServerSidePropsResult as NextGetServerSidePropsResult
} from "next";
For the "BEFORE" type, it has any type(GetServerSidePropsContext, GetServerSidePropsResult), so no child type such as previewData was inferred from the "NextGetServerSidePropsContext["previewData"] type.
[ BEFORE ]
[ AFTER ]
For the "BEFORE" type, it has any type(
GetServerSidePropsContext
,GetServerSidePropsResult
), so no child type such as previewData was inferred from the "NextGetServerSidePropsContext["previewData"]
type.Please advise if this is your intention.