Next.js Discord

Discord Forum

GET http://localhost:3000 404 (Not Found)

Answered
Havana posted this in #help-forum
Open in Discord
Avatar
HavanaOP
I'm getting this error every time for so long.. it's been days.
I keep restarting the server to keep developing.

GET http://localhost:3000 404 (Not Found)
Answered by Havana
it looks like deleting the .next folder fix the problem finally.. but it sometimes happen.
View full answer

22 Replies

Avatar
Russian Blue
Hello @Havana
The 404 code signifies that a server could not find a client-requested webpage. Common variations of the error message include "404 Error," "404 Page Not Found," and "The requested URL was not found"
If you need, I can fix it
Avatar
HavanaOP
Of course I need? What's the point of the post.
Avatar
Russian Blue
The 404 code signifies that a server could not find a client-requested webpage. Common variations of the error message include "404 Error," "404 Page Not Found," and "The requested URL was not found"
""
So for you fix the error, you should change your code.
I should show your code for fixing the error.
understand?
Avatar
HavanaOP
The error not just happening in a specific project.
but it's a nextjs template with shadcn ui anyway
Avatar
Swedish Lapphund
when you use npm run dev, what is the url it provides?
Avatar
HavanaOP
The app works fine at first, but when I reload the page in the browser, I get hit with a 404 error or sometimes just a blank white page. To fix it, I end up restarting the server and doing that dance until the errors finally chill out.
Avatar
Swedish Lapphund
F12 and check if there are any console errors logged, also check the network tab
in the CMD you start the app in, are there any errors?
You havent provided us with anything so its pretty hard to help you.
Avatar
HavanaOP
GET http://localhost:3000/ 404 (Not Found) :3000/:1

GET http://localhost:3000/_next/static/chunks/react-refresh.js net::ERR_ABORTED 404 (Not Found) localhost/:1 

GET http://localhost:3000/_next/static/chunks/main.js net::ERR_ABORTED 404 (Not Found) localhost/:1 

GET http://localhost:3000/_next/static/chunks/pages/_app.js net::ERR_ABORTED 404 (Not Found) localhost/:1 

GET http://localhost:3000/_next/static/chunks/pages/_error.js net::ERR_ABORTED 404 (Not Found) localhost/:1 

Sometimes I get these errors:
GET http://localhost:3000/_next/static/chunks/webpack.js?v=1705925716069 net::ERR_ABORTED 404 (Not Found) localhost/:1

GET http://localhost:3000/_next/static/chunks/main-app.js?v=1705925716069 net::ERR_ABORTED 404 (Not Found) localhost/:1

GET http://localhost:3000/_next/static/chunks/app-pages-internals.js net::ERR_ABORTED 404 (Not Found) localhost/:1

GET http://localhost:3000/_next/static/chunks/app/page.js net::ERR_ABORTED 404 (Not Found) localhost/:1

GET http://localhost:3000/_next/static/chunks/app/layout.js net::ERR_ABORTED 404 (Not Found) localhost/:1
Avatar
HavanaOP
it happend on every project not only this
Avatar
HavanaOP
even the default next app
Avatar
HavanaOP
it looks like deleting the .next folder fix the problem finally.. but it sometimes happen.
Answer