Next.js Discord

Discord Forum

Error 404 on all pages in Next 14 app router

Answered
Narrow-barred Spanish mackerel posted this in #help-forum
Open in Discord
Avatar
Narrow-barred Spanish mackerelOP
I'm developing a web3 app mostly working on frontend rn. All of a sudden i'm getting Error 404 on all pages and when runnign build its only getting 404 route

▲ Next.js 14.2.4
  - Environments: .env

   Creating an optimized production build ...
 ✓ Compiled successfully
   Skipping validation of types
   Skipping linting
 ✓ Collecting page data    
 ✓ Generating static pages (2/2)
 ✓ Collecting build traces    
 ✓ Finalizing page optimization

Route (pages)                             Size     First Load JS       
─ ○ /404                                  181 B            79 kB       
+ First Load JS shared by all             78.8 kB
  ├ chunks/framework-d1703057b07599d4.js  45.2 kB
  ├ chunks/main-8621951b29394129.js       32 kB
  └ other shared chunks (total)           1.63 kB

○  (Static)  prerendered as static content
Answered by James4u (Tag me if needed)
what do you have inside your root app?
View full answer

9 Replies

Avatar
show me your workspace
Avatar
Narrow-barred Spanish mackerelOP
workspace?
can attach package.json and next config
Avatar
no, I mean screenshot of folders inside your workspace
Avatar
Narrow-barred Spanish mackerelOP
Image
Avatar
what do you have inside your root app?
Answer
Avatar
Narrow-barred Spanish mackerelOP
aah -__
i need a break 😦 lol
TY @James4u (Tag me if needed)