{"record":{"id":"ea6c2dc6f14e7a62","repo":"paperclipai/paperclip","slug":"paperclip-server-entrypoint-did-not-export-startse","errorCode":null,"errorMessage":"Paperclip server entrypoint did not export startServer(): ${label}","messagePattern":"Paperclip server entrypoint did not export startServer\\(\\): (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/run.ts","lineNumber":250,"sourceCode":"\n  // Production mode: import the published @paperclipai/server package\n  try {\n    const mod = await import(\"@paperclipai/server\");\n    return await startServerFromModule(mod, \"@paperclipai/server\");\n  } catch (err) {\n    const missingSpecifier = getMissingModuleSpecifier(err);\n    const missingServerEntrypoint = !missingSpecifier || missingSpecifier === \"@paperclipai/server\";\n    if (isModuleNotFoundError(err) && missingServerEntrypoint) {\n      throw new Error(\n        `Could not locate a Paperclip server entrypoint.\\n` +\n          `Tried: ${devEntry}, @paperclipai/server\\n` +\n          `${formatError(err)}`,\n      );\n    }\n    throw new Error(\n      `Paperclip server failed to start.\\n` +\n        `${formatError(err)}`,\n    );\n  }\n}\n\nfunction shouldGenerateBootstrapInviteAfterStart(config: PaperclipConfig): boolean {\n  return config.server.deploymentMode === \"authenticated\" && config.database.mode === \"embedded-postgres\";\n}\n\nasync function startServerFromModule(mod: unknown, label: string): Promise<StartedServer> {\n  const startServer = (mod as { startServer?: () => Promise<StartedServer> }).startServer;\n  if (typeof startServer !== \"function\") {\n    throw new Error(`Paperclip server entrypoint did not export startServer(): ${label}`);\n  }\n  return await startServer();\n}\n","sourceCodeStart":232,"sourceCodeEnd":265,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/run.ts#L232-L265","documentation":"startServerFromModule inspected the imported server module and found no startServer export, so the loaded entrypoint is not a valid Paperclip server.","triggerScenarios":"Thrown at cli/src/commands/run.ts:224 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the resolved server entrypoint exports startServer(); use a supported Paperclip server build."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}