Memory Leak
Environment
- Operating System:
Windows_NT - Node Version:
v22.13.1 - Nuxt Version:
3.15.4 - CLI Version:
3.22.2 - Nitro Version:
2.10.4 - Package Manager:
[email protected] - Builder:
- - User Config:
compatibilityDate,devtools,modules - Runtime Modules:
@nuxt/[email protected] - Build Modules:
-
Package
@nuxt/eslint
Reproduction
https://github.com/Jorgee97/memory-leak-nuxt-eslint
Describe the bug
I just setup a nuxt application and installed the nuxt/eslint module and noticed an increased usage of my RAM. It increase little by little until it starves the system out of resources.
Just running npm run dev:
After a while:
I noticed that adding spaLoadingTemplate: false to the nuxt.config.ts fixes the issue, but I guess this is a casual behavior.
Additional context
No response
Logs
Can you provide a bit more context on this? I don't see anything in this module would cause memory leak other than enabling the dev-checker, but it doesn't seems to be your case
@antfu I haven't looked into it recently, but the behavior was on my windows machine, I would start the project and after a couple of reloads it started to leak memory, it only happend when the eslint plugin was installed (I debugged this by creating a clean project and checking whether or not adding eslint caused the issue). I added a reproduction repo, but if you think this is too isolated (I started to think that it is aswell) we can close this issue.