page.tsx is exporting:
Xnamed export for Zod Type to be used in other files.- The actual page as the default. But I am getting the error in the title.
Page "src/../page.tsx" does not match the required types of a Next.js Page. "X" is not a valid Page export field.
export const X = z.object({});
export default function MyPage() {
}
Am I not allowed to have named exports in page.tsx files? Its odd because only this single page is giving me an issue. I have named exports in other page.tsx files and no issue.