Next.js Discord

Discord Forum

`next dev` "Error: UNKNOWN" on second compilation

Unanswered
Mini Rex posted this in #help-forum
Open in Discord
Mini RexOP
As of recent (unfortunately I do not know what has changed recently to cause this), running npm run dev works, but whenever I update the file it attempts to recompile and gives me the following error:
error [Error: UNKNOWN: unknown error, open 'X:\Some Useful Stuff\Applications\Web\next-sukadia.dev\.next\server\webpack-runtime.js'] {
  errno: -4094,
  code: 'UNKNOWN',
  syscall: 'open',
  path: 'X:\\Some Useful Stuff\\Applications\\Web\\next-sukadia.dev\\.next\\server\\webpack-runtime.js'
}


I've tried updating, clearing npm's cache, deleting/reinstalling node_modules, and removing the .next folder to no avail. Any ideas?

10 Replies

Mini RexOP
bump; still having this issue and not sure what to do. tried everything i could find online.
the path seems to change sometimes; it changes between webpack-runtime.js and app-paths-manifest.json, both in the server folder.
have you tried removing .next?
Mini RexOP
yea; i listed a few things i tried in the main message, most just involving reinstalling things
then i honestly don't know what's wrong here, never seen this before
maybe submit a bug report in https://github.com/vercel/next.js
Mini RexOP
in the meantime (since they take quite long to triage and work on issues), i suggest installing WSL and work on your project there
i notice nextjs glitching on windows a lot compared to unix-based systems like macos or linux
Mini RexOP
yea, i'll try to look for a workaround or fix; windows is definitely like that sometimes