'Component' cannot be used as a JSX component.
I saw someone else had this issue, but their solution (Updating to Next.js 13.2.4) didn't seem to work for me, and as far as I can tell everything is up to date on my end.
Getting this error:

import { type AppType } from "next/dist/shared/lib/utils";
import "~/styles/globals.css";
const MyApp: AppType = ({ Component, pageProps }) => {
return <Component {...pageProps} />;
};
export default MyApp;npm run build on my terminal failsimport type { AppProps } from 'next/app';
import "~/styles/globals.css";
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}
export default MyApp;