Next.js: I get 404 error in my browser when trying to load assets

Created on 21 Jun 2017  路  5Comments  路  Source: vercel/next.js

I don't know why my browser cannot find these path. I'm facing this issue since yesterday. I can't find a solution.

Error GET http://localhost:5002/_next/a020c586-9e9e-4a64-9cfb-1a6dd8232b1e/page

Error GET http://localhost:5002/_next/77863f38-3739-407b-9739-959562b6cd27/page/_error

Error GET http://localhost:5002/_next/95f1845c1ef003b80b360d9b9c2498a7/app.js

Thanks for helping

Most helpful comment

If you using a custom server, this could be the issue: https://github.com/zeit/next.js/issues/2298
It has been fixed and I'll to do a new beta release today.

All 5 comments

i also have an app.js error :(

If you using a custom server, this could be the issue: https://github.com/zeit/next.js/issues/2298
It has been fixed and I'll to do a new beta release today.

@jackmatrix , did you find a way to solve this?

@arunoda I tried beta16 also without success.

I checked if i set the 404 status when rendering the _error page but i could not find that.

my repo is here: https://github.com/royrijkers/next-test

when i run this locally it runs fine, but when i deploy on Digitalocean using a Nginx reverse proxy it does not. nginx is setup as instructed here: https://github.com/zeit/next.js/wiki/Deployment-on-Nginx's-reverse-proxy

this is the error:

image

Can you please help me?

This is seems working to me very well locally with production build. So, I think something with the nginx config.
Unfortunately, I don't know much about this.

Was this page helpful?
0 / 5 - 0 ratings