/_next/ 404
Answered
Japanese Bobtail posted this in #help-forum
Japanese BobtailOP
Hello,
I have a silly problem running
I have found threads of people having this problem but it seems they have a custom server and just have to create the link themselves:
https://github.com/vercel/next.js/discussions/11622
No such luck for me, it is all contained within NextJS. Not everyone on my team has this problem even running the same OS (Windows 11) and same version of NodeJS and Yarn.
My Windows
I have also tried the docker images https://github.com/tecnickcom/alldev and https://hub.docker.com/_/node/ to no avail.
Any help is much appreciated, it's an annoying issue I have already spent far to much time on.
I have a silly problem running
next dev, it seems like it is failing to create a symlink between the /.next directory and the directory served via localhost /_next/. (see attachment).I have found threads of people having this problem but it seems they have a custom server and just have to create the link themselves:
https://github.com/vercel/next.js/discussions/11622
No such luck for me, it is all contained within NextJS. Not everyone on my team has this problem even running the same OS (Windows 11) and same version of NodeJS and Yarn.
My Windows
Developer Mode is enabled and I have tried running in an elevated powershell, no luck.I have also tried the docker images https://github.com/tecnickcom/alldev and https://hub.docker.com/_/node/ to no avail.
Any help is much appreciated, it's an annoying issue I have already spent far to much time on.
12 Replies
Japanese BobtailOP
Can anyone tell me anything about the
next dev command? I am finding the documentation lacking but maybe I am looking in the wrong place. I am trying to track down the directory it is serving, so that I can manually create the symlink. Paradoxically it seems like it should be the .next folder however I cannot find any index.html document within it.Japanese BobtailOP
Version of NextJS is: "next": "^12.3.1"
I cannot replicate the same bug on a freshly generated project running version 13 although pretty much the same requests are made, they do not 404
Japanese BobtailOP
cannot replicate on a freshly generated ^12.3.1 project (npx create-next-app@^12.3.1)
must be a config issue....
ok... I got it working
drum roll....
it appears that the issue is/was
the project is named like this: my%20project
because people are stupid
and for whatever reason, this seems to stop what I assume is a symlink being created
Japanese BobtailOP
renaming to 'myProject' seems to solve it
Answer