1

To replicate my issue, I created a next app template folder with npx create-next-app (Version 13.1.6==latest, all default options, Node v18.14.0==LTS) and when I try to run it with npm run dev it loads HTML files like index.tsx, but 404s on all assets and scripts.

The same thing happens with npm run build/start.

Reproduced the issue on both Chrome and Firefox (no extensions or adblockers of any sort) with create-next-app@latest and @12.4.3. The issue does not reproduce on Docker though (node:alpine-current).

network tab console tab

emivespa
  • 21
  • 6

1 Answers1

1

It was a file naming issue. Apparently Next mishandles your files if there are weird characters in the absolute filepaths. I suspect a lot of questions/issues of the sort "brand new create-next-app routes not resolving" have to do with this.

emivespa
  • 21
  • 6