Error: A FileHandle object was closed during garbage collection (ESLint)
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- eslint, node.js, typescript, vite
- Domain
- devtools
Research direction
The report points to Vite config loading from the ESLint configuration and open FileHandles for .vite/devtools/inspect/plugin-calls.bin and payloads.bin, but gives no repository files or reproducible project. Start by tracing the config loading path and finding where the Vite Devtools plugin opens these files; reproduce with the linked setup if possible. Done means eslint . exits without the FileHandle garbage collection errors and the handles are explicitly closed.
Written by the indexing model from the issue text.
Description
Describe the bug
When setting up Vite Devtools + Svelte in https://github.com/WarningImHack3r/svelte-changelog/commit/65c9f08163cc67eadc88bf0bbbe30519bd099080, I encountered this error when running eslint . in my project:
Oops! Something went wrong! :(
ESLint: 10.15.0
Error: A FileHandle object was closed during garbage collection. This used to be allowed with a deprecation warning but is now considered an error. Please close FileHandle objects explicitly. File descriptor: 18 (/Users/antoine/Developer/svelte-changelog/node_modules/.vite/devtools/inspect/plugin-calls.bin)
Oops! Something went wrong! :(
ESLint: 10.15.0
Error: A FileHandle object was closed during garbage collection. This used to be allowed with a deprecation warning but is now considered an error. Please close FileHandle objects explicitly. File descriptor: 17 (/Users/antoine/Developer/svelte-changelog/node_modules/.vite/devtools/inspect/payloads.bin)
I don't precisely know where this error comes from, what config causes this, or why it's only triggered by ESLint, but Claude says it's because my ESLint config loads the Vite config, and the Vite devtools plugin never releases handles on those files when the server is never actually booted.
I wasn't able to reproduce it in a new project, but it comes from loadConfig at the top of my ESLint config invoking the Vite config.
Reproduction
Can only reproduce in my project, tried but failed on fresh project
System Info
System:
OS: macOS 27.2.1
CPU: (10) arm64 Apple M1 Pro
Memory: 86.97 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 26.13.1 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 12.2.3 - /opt/homebrew/bin/npm
pnpm: 12.23.0 - /opt/homebrew/bin/pnpm
bun: 1.4.5 - /Users/antoine/.bun/bin/bun
Browsers:
Safari: 27.2
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 97
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vitejs/devtools
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vitejs/devtools#261 · 2 comments ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
vitejs/devtools#624 · 1 reaction ·
Maintainers usually reply within 2 days
-
feat(oxc): add rule timing stats to the lint inspectorMay be free again @yuyinws claimed this 68 days ago, and no pull request is open. Openenhancement
vitejs/devtools#584 · 1 assignee ·
Maintainers usually reply within 2 days
-
Static build: frame/panel URLs are still absolute when output is hosted at a subpathPossibly taken @0froq claimed this 11 days ago. Openpending triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
vitejs/devtools#583 · 1 comment ·
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
earendil-works/pi#12615 ·
Maintainers usually reply within 1 day
-
My Caps shows "Shared" on private Caps that were never sharedPossibly taken @AksharP5 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CapSoftware/Cap#4569 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OHDSI/Data2Evidence#3749 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Flagsmith/flagsmith-nodejs-client#332 ·
Maintainers usually reply within 2 days