oven-sh/bun · error · Error

Failed to build vendor: ${buildResult.error}

Error message

Failed to build vendor: ${buildResult.error}

What it means

Error "Failed to build vendor: ${buildResult.error}" thrown in oven-sh/bun.

Source

Thrown at scripts/runner.node.mjs:1201

      const packageJson = join(relative(cwd, vendorPath), "package.json").replace(/\\/g, "/");
      if (packageManager === "bun") {
        const { ok } = await runTest(packageJson, () => spawnBunInstall(execPath, { cwd: vendorPath }));
        if (!ok) {
          continue;
        }
      } else {
        throw new Error(`Unsupported package manager: ${packageManager}`);
      }

      // build
      const buildResult = await spawnBun(execPath, {
        cwd: vendorPath,
        args: ["run", "build"],
        timeout: 60_000,
      });
      if (!buildResult.ok) {
        throw new Error(`Failed to build vendor: ${buildResult.error}`);
      }

      for (const testPath of testPaths) {
        const title = join(relative(cwd, vendorPath), testPath).replace(/\\/g, "/");

        if (testRunner === "bun") {
          await runTest(title, index =>
            spawnBunTest(execPath, testPath, { cwd: vendorPath, env: { TEST_SERIAL_ID: index } }),
          );
        } else {
          const testRunnerPath = join(cwd, "test", "runners", `${testRunner}.ts`);
          if (!existsSync(testRunnerPath)) {
            throw new Error(`Unsupported test runner: ${testRunner}`);
          }
          await runTest(title, () =>
            spawnBunTest(execPath, testPath, {
              cwd: vendorPath,
              args: ["--preload", testRunnerPath],

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at scripts/runner.node.mjs:1201 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/e619992582cdd3d9. Report an issue: GitHub.