I just upgraded from Nuxt 3 to Nuxt 4.1.2, now when running the
dev
dev
command, the application resets randomly (it seems), I can see at the start that there are some dependency optimization, but after a while it just stops working or reloads the page entirely.
Looking at the logs, a lot of errors occur, most are: - Fetch handler error: Cannot pipe to a closed or destroyed stream - Fetch handler error: aborted - Fetch handler error: Premature close
---
The project normally uses pnpm, but I've tried changing to npm and yarn and the same problems occur. On nuxt 3.8 it was working fine. Other dependencies have changed as well, such as Primevue and Tailwindcss.
I wish to understand and fix this problem, it is becoming a real problem and its slowing development for the entire team. The application in production works fine, nothing wrong.