Open Flashantik opened 10 months ago
Same problem occurs on nuxt 3.11.1 with nitropack 2.9.X
Same problem occurs on nuxt 3.11.1 with nitropack 2.8.X
Yes, but it's hardly a nitropack problem. nuxt@3.6.5 works fine with nitropack@2.8.1, but nuxt@3.7.0 with nitropack@2.8.1 is already slow and buggy. This continues on nuxt@3.11.1.
This is happening in our project that isn't that big even (±400 components). It does indeed seem to be mainly a Nuxt issue, as @Flashantik pointed out in https://github.com/nuxt/nuxt/issues/23832.
This is happening in our project that isn't that big even (±400 components). It does indeed seem to be mainly a Nuxt issue, as @Flashantik pointed out in nuxt/nuxt#23832.
It's not just about the components, but also about composables, utils pages, and so on. Each file in dev mode is loaded separately on the network, I think this is the problem..
By the way, as a solution to the problem, I found using bun instead of node, it is capable of consistently delivering about 10,000 files
Facing the same problem!
Environment
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