{"record":{"id":"d4ee0d77a8c8ac24","repo":"ComposioHQ/composio","slug":"no-classes-found-in-typedoc-output","errorCode":null,"errorMessage":"No classes found in TypeDoc output","messagePattern":"No classes found in TypeDoc output","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ts/packages/core/scripts/generate-docs.ts","lineNumber":1176,"sourceCode":"\nasync function main() {\n  console.log('Starting TypeScript SDK documentation generation...\\n');\n  console.log(`Package dir: ${PACKAGE_DIR}`);\n  console.log(`Output dir: ${OUTPUT_DIR}\\n`);\n\n  // Clean output directory\n  try {\n    await rm(OUTPUT_DIR, { recursive: true, force: true });\n  } catch {\n    // Directory doesn't exist, that's fine\n  }\n  await mkdir(OUTPUT_DIR, { recursive: true });\n\n  // Run TypeDoc\n  const project = await runTypeDoc();\n\n  if (!project.children) {\n    throw new Error('No classes found in TypeDoc output');\n  }\n\n  // Auto-discover classes to document (excludes internal classes)\n  const classesToDocument = discoverClassesToDocument(project);\n  console.log(\n    `  Found ${classesToDocument.length} classes to document: ${classesToDocument.join(', ')}`\n  );\n\n  // Find and document each class\n  const documented: { name: string; description: string }[] = [];\n\n  for (const className of classesToDocument) {\n    const reflection = findClass(project, className);\n\n    if (!reflection) {\n      console.warn(`  Warning: ${className} not found in TypeDoc output`);\n      continue;\n    }","sourceCodeStart":1158,"sourceCodeEnd":1194,"githubUrl":"https://github.com/ComposioHQ/composio/blob/64b1b85502b1beeb2379e6c9e8bf1104504fa637/ts/packages/core/scripts/generate-docs.ts#L1158-L1194","documentation":"Internal docs-generation script error: TypeDoc ran but its project reflection has no children, meaning it parsed no exported classes. This indicates an empty/broken parse of the source, not a problem with the SDK runtime.","triggerScenarios":"Running scripts/generate-docs.ts when TypeDoc entry points are misconfigured, the build/entry files are missing, or TypeDoc version changes yield a different project shape.","commonSituations":"CI docs job after a refactor moved entry points; TypeDoc major-version bump changing output structure; running the script before building the package.","solutions":["Verify the TypeDoc entryPointStrategy/entryPoints config still points at real source files","Build the package first (pnpm build:packages) so generated/compiled surfaces exist","Check the pinned TypeDoc version hasn't drifted; re-pin if a major bump changed output","Debug runTypeDoc() output to confirm the project reflection is populated"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"const project = await runTypeDoc();\nif (!project.children?.length) failFast('entry points misconfigured');","typeGuard":null,"tryCatchPattern":"try { await main(); } catch (e) { if (e.message === 'No classes found in TypeDoc output') { console.error('check TypeDoc entryPoints'); process.exit(1); } }","preventionTips":["Build packages before running docs generation","Pin the TypeDoc version"],"tags":["docs","typedoc","build","internal-script"],"backgroundTag":"empty-generator-output","analyzedSha":"64b1b85502b1beeb2379e6c9e8bf1104504fa637","analyzedAt":"2026-08-28T15:39:33.623Z","schemaVersion":2},"datasetVersion":"2026-08-28T16:17:29.566Z"}