eslint icon indicating copy to clipboard operation
eslint copied to clipboard

Memory Leak

Open Jorgee97 opened this issue 9 months ago • 2 comments

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: Image

After a while: Image

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


Jorgee97 avatar Feb 28 '25 00:02 Jorgee97

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 avatar May 21 '25 07:05 antfu

@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.

Jorgee97 avatar May 22 '25 05:05 Jorgee97