{"record":{"id":"53ed657e108348a4","repo":"paperclipai/paperclip","slug":"failed-to-auto-build-bundled-local-plugin-packag","errorCode":null,"errorMessage":"Failed to auto-build bundled local plugin ${packageName}${timeoutMessage}. Run `${manualBuildCommand}` from the repo root and retry.${stderrMessage}","messagePattern":"Failed to auto-build bundled local plugin (.+?)(.+?)\\. Run `(.+?)` from the repo root and retry\\.(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/src/services/plugin-loader.ts","lineNumber":914,"sourceCode":"  });\n\n  try {\n    for (const command of buildCommands) {\n      await runExecFileAsync(\n        command.file,\n        command.args,\n        { cwd: command.cwd, timeout: LOCAL_PLUGIN_AUTOBUILD_TIMEOUT_MS },\n      );\n    }\n  } catch (error) {\n    const stderr = typeof (error as { stderr?: unknown }).stderr === \"string\"\n      ? (error as { stderr: string }).stderr.trim()\n      : \"\";\n    const timeoutMessage = (error as { killed?: unknown }).killed === true\n      ? ` after timing out at ${LOCAL_PLUGIN_AUTOBUILD_TIMEOUT_MS}ms`\n      : \"\";\n    const stderrMessage = stderr.length > 0 ? ` stderr: ${stderr}` : \"\";\n    throw new Error(\n      `Failed to auto-build bundled local plugin ${packageName}${timeoutMessage}. ` +\n        `Run \\`${manualBuildCommand}\\` from the repo root and retry.${stderrMessage}`,\n    );\n  }\n\n  const stillMissingEntrypoints = listMissingDeclaredPluginEntrypoints(packageRoot, pkgJson);\n  const stillMissingStandaloneRuntimeDeps = isStandaloneBundledPluginPath(packageRoot, { repoRoot: options.repoRoot })\n    ? listMissingStandaloneBundledPluginRuntimeDependencies(packageRoot, pkgJson)\n    : [];\n  if (stillMissingEntrypoints.length > 0 || stillMissingStandaloneRuntimeDeps.length > 0) {\n    const missingDetails: string[] = [];\n    if (stillMissingEntrypoints.length > 0) {\n      missingDetails.push(`built entrypoints: ${stillMissingEntrypoints.map((entrypoint) => entrypoint.key).join(\", \")}`);\n    }\n    if (stillMissingStandaloneRuntimeDeps.length > 0) {\n      missingDetails.push(`runtime dependencies: ${stillMissingStandaloneRuntimeDeps.join(\", \")}`);\n    }\n    throw new Error(","sourceCodeStart":896,"sourceCodeEnd":932,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/services/plugin-loader.ts#L896-L932","documentation":"Auto-build failure in ensureLocalPluginBuilt: running the build commands for a bundled local plugin failed (non-zero exit or timeout at LOCAL_PLUGIN_AUTOBUILD_TIMEOUT_MS). Message includes stderr and the manual build command; the local plugin's build (missing toolchain/deps) is at fault.","triggerScenarios":"Thrown at server/src/services/plugin-loader.ts:914 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the printed manual build command from the repo root (e.g. pnpm --filter <package> build), resolve any build errors shown in stderr, then retry loading the plugin."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}