/_next/static/.../pages/***.js 404 Not Found.. build issue
March 29, 2019 at 3:32amThe Next.js community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →
/_next/static/.../pages/***.js 404 Not Found.. build issue
March 29, 2019 at 3:32amDeployed sample application, which is not working as excepted.
Always showing 404 for all pages.
it is regular node app deployment.
Any one please help, Thanks!
March 30, 2019 at 10:44am
August 16, 2019 at 12:08am
August 16, 2019 at 6:44am
August 16, 2019 at 6:08pm
August 22, 2019 at 12:37am
I got solve it with simple distDir https://github.com/Bastiani/bastiani-blog/blob/master/next.config.js#L9
August 28, 2019 at 10:52pm
September 2, 2019 at 10:55am
September 17, 2019 at 6:29am
September 17, 2019 at 11:30pm
Hi all,
I solved this problem by adding next.config.js
Adding screenshot for reference.
My problem was, next build is not generating the build_id, So generated run time build id, so solve the problem.
September 18, 2019 at 9:53am
October 8, 2019 at 2:43pm
October 17, 2019 at 12:27pm
just follow above screen shoot
November 23, 2019 at 12:31am
hi
In my case the problem was an incorrect pathname, in the route.push.
December 13, 2019 at 10:52am
can help check why js file is 404
this the correct path http://localhost:8080/mobile/_next/static/runtime/main-aa30553951ce84819708.js
like this Router.push('/ slot?Type=123') Only then will this kind of error occur only rooter no have query is work
this is secondary directory
Is it a problem of route mapping?