-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Labels
Description
Environment
- Operating System: Darwin
- Node Version: v18.19.0
- Nuxt Version: 3.10.0
- CLI Version: 3.10.0
- Nitro Version: 2.8.1
- Package Manager: npm@10.2.3
- Builder: -
- User Config: srcDir, devtools
- Runtime Modules: -
- Build Modules: -
Reproduction
https://github.com/Flashantik/nuxt-3.10.-slow-dev-mode
Describe the bug
We have a large application, however after updating nuxt@3.7 dev mode started to slow down a lot and often cannot render all components
I was able to recreate this behavior in a clean project with a lot of simple components...
To get the error all you need to do is run npm run dev and go to localhost:3000.
Many components in the network will be in pending mode and after some time 500 error or ERR_CONNECTION_REFUSED error will be displayed. If there is no error in the console it is enough to reload the page.
build mode works fine. If you install nuxt@3.6.5 there are no such problems with dev mode.

Additional context
No response
Logs
Client logs:
vue-router.mjs:3471 TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue
triggerError @ vue-router.mjs:3471
(anonymous) @ vue-router.mjs:3184
nuxt.js:98 [nuxt] error caught during app initial
[Vue Router warn]: uncaught error during route navigation:
[nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported module
Failed to load resource: net::ERR_CONNECTION_REFUSED
Failed to load resource: net::ERR_SOCKET_NOT_CONNECTED
Hydration class mismatch
Server Logs (sometimes)
ERROR [unhandledRejection] connect ETIMEDOUT 127.0.0.1:61574 9:49:52 PM
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)Reactions are currently unavailable