Hello, I'm currently using the nextjs app directory, and when running my build command for nextjs i get a build error:
dashboard:build: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
dashboard:build: Collecting page data ...
dashboard:build: Generating static pages (0/4) ...
dashboard:build: Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
I don't see anything wrong with my projects structure, as seen in the image below:
I am on the latest version of next "next": "^15.0.1",. Any clue what could be causing this?
I have a valid root layout:
import "@/styles/globals.css";
import { GeistSans } from "geist/font/sans";
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={`${GeistSans.className}`}>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<body>{children}</body>
</html>
);
}
and a valid (public)/page.ts:
export default async function Home() {
return (
<main>
<div>
<h1>hi</h1>
</div>
</main>
);
}