Dev server crashes after about an hour
I'm working on a nuxt 4 project and noticed the dev server crashes after about an hour with the following messages:
ℹ nuxt.config.ts updated. Restarting Nuxt...
ℹ Nuxt Icon server bundle mode is set to local
ERROR [unhandledRejection] read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:216:20) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) However, I have not changed or touched the nuxt config file at all. In fact, I was watching some videos and didn't touch a single file. This happened three times already. Has anyone experienced a similar error?
ℹ Nuxt Icon server bundle mode is set to local
ERROR [unhandledRejection] read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:216:20) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) However, I have not changed or touched the nuxt config file at all. In fact, I was watching some videos and didn't touch a single file. This happened three times already. Has anyone experienced a similar error?

4 Replies
Hi @Romanov. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not contain enough information to provide a definitive answer about why the Nuxt 4 dev server crashes after about an hour with the specific ECONNRESET error and the message about nuxt.config.ts being updated, especially when you haven't changed any files.
There are some related issues in the knowledge sources about dev server crashes, unexpected restarts, and errors triggered by file changes or environment issues, but none directly match your scenario of repeated, timed crashes without file changes. For example, some issues have been linked to specific plugins, memory issues, or problems with certain Node.js versions, but nothing directly addresses a spontaneous restart or ECONNRESET after a period of inactivity in Nuxt 4.
If this issue persists, you may want to check for:
- External processes or tools that might be touching files in your project directory (e.g., file sync tools, editors, or background processes).
- Node.js version compatibility, as some issues have been observed with certain versions.
- Any custom modules or plugins that could be affecting the dev server.
But again, the knowledge sources do not explicitly mention this specific problem or provide a confirmed solution. If you continue to experience this, consider opening an issue on the Nuxt GitHub repository with detailed logs and your environment information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@260590544730849283> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
This happens for me aswell, it will also happen if I edit the .env or nuxt config file
comes back up after re-running the command tho
This happens to me regularly too, and it's very annoying
Especially since I'm in a turborepo environment and the app sometimes stops working, forcing me to shut everything down and restart it (including back and shared packages)