Next.js Discord

Discord Forum

404 Page shows blank

Answered
Hexaa Scoooolzs posted this in #help-forum
Open in Discord
Avatar
Hexaa ScoooolzsOP
Hello!, so i've been creating a personal website for myself and gonna setting up not-found.tsx file. before i'm code on that thing, i'm test into the 404 page (/en/foobar). but weirdly, the page shows a blank page with a bunch of errors log-ed in chrome terminals. So, how to fix that blank page?

(I'm try to build and no errors come up)
Image
Image
Answered by Hexaa Scoooolzs
Okay i'm get it. the errors triggers because the parent layout /app/layout.tsx is empty or returned only children. I'm fix it by just do add <html><body> things and it works perfectly.
View full answer

1 Reply

Avatar
Hexaa ScoooolzsOP
Okay i'm get it. the errors triggers because the parent layout /app/layout.tsx is empty or returned only children. I'm fix it by just do add <html><body> things and it works perfectly.
Answer