Repository navigation
Closed as not planned
Description
Describe the bug
I am attempting to run vitest with bunx.
bunx vitest
Before the tests even start, however, I get the following error:
bunx vitest
DEV v4.0.18 /home/.../...
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: [vitest-pool]: Worker forks emitted error.
❯ EventEmitter.<anonymous> ../node_modules/vitest/dist/chunks/cli-api.B7PN_QUv.js:8043:22
❯ EventEmitter.emit ../node:events:508:28
❯ ChildProcess.emitUnexpectedExit ../node_modules/vitest/dist/chunks/cli-api.B7PN_QUv.js:7610:22
❯ ChildProcess.emit ../node:events:508:28
❯ Process.ChildProcess._handle.onexit ../node:internal/child_process:294:12
Caused by: Error: Worker exited unexpectedly
❯ ChildProcess.emitUnexpectedExit ../node_modules/vitest/dist/chunks/cli-api.B7PN_QUv.js:7609:33
❯ ChildProcess.emit ../node:events:508:28
❯ Process.ChildProcess._handle.onexit ../node:internal/child_process:294:12
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Test Files (1)
Tests no tests
Errors 1 error
Start at 18:48:15
Duration 2.10s (transform 38ms, setup 0ms, import 0ms, tests 0ms, environment 0ms)
I only started seeing this error after installing another app (Antigravity) that seemed to bump my glibc version, but I didn't look too closely at the time. I'm seeing other threads like #6285 that seem to point to tinypool as a possible culprit, but none of the suggested workarounds has resolved this.
I have tried:
- Pinning my versions of
vitestandtinypool - The
forksandvmForksoptions
Reproduction
bunx vitest
As can be seen in my output above, this is likely a system issue as no tests actually run.
Vite config:
/// <reference types="vitest/config" />
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
export default defineConfig({
root: "client",
plugins: [solid()],
// tests are relative to the project root, not the client app root
test: {
include: ["../**/*.test.[jt]s"],
exclude: [
"../**/node_modules/**",
"../**/dist/**",
"../**/cypress/**",
"../**/.{idea,git,cache,output,temp}/**",
"../**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
],
},
resolve: {
alias: {
src: "/src",
},
},
});
System Info
Output from the command above:
System:
OS: Linux 6.17 Ubuntu 24.04.4 LTS 24.04.4 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
Memory: 10.01 GB / 15.25 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 24.9.0 - /home/scott/.nvm/versions/node/v24.9.0/bin/node
npm: 11.6.0 - /home/scott/.nvm/versions/node/v24.9.0/bin/npm
bun: 1.2.22 - /home/scott/.bun/bin/bun
Browsers:
Firefox: 148.0
Firefox Developer Edition: 148.0
npmPackages:
vite: ^6.4.1 => 6.4.1
vitest: ^4.0.18 => 4.0.18 Output of ldd --version:
ldd (Ubuntu GLIBC 2.39-0ubuntu8.7) 2.39
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
Used Package Manager
bun
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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 open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Activity
github-actions commentedon Mar 2, 2026
Hello @scottysseus. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with
needs reproductionwill be closed if they have no activity within 3 days.