deepseek-ai/deepseek-harness · error · TypeGraphRenderError

type graph references missing member ${id}

Error message

type graph references missing member ${id}

What it means

Error "type graph references missing member ${id}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/typert/generator/src/renderer.ts:77

  /**
   * Resolve a declaration id or fail with the broken edge.
   * @param id - workspace symbol id.
   * @returns the referenced declaration.
   */
  declaration(id: SymbolId): TypeDeclarationModel {
    const declaration = this.declarations.get(id)
    if (declaration === undefined) throw new TypeGraphRenderError(`type graph references missing declaration ${id}`)
    return declaration
  }

  /**
   * Resolve a public member id.
   * @param id - declaration member id.
   * @returns the referenced member.
   */
  member(id: string): MemberModel {
    const member = this.members.get(id)
    if (member === undefined) throw new TypeGraphRenderError(`type graph references missing member ${id}`)
    return member
  }

  /**
   * Render one type expression from the retained source structure.
   * @param id - type node id.
   * @param references - optional generated names for declaration references.
   * @returns TypeScript type text.
   */
  renderType(id: TypeNodeId, references?: ReadonlyMap<SymbolId, string>): string {
    const node = this.node(id)
    switch (node.kind) {
      case 'keyword': return node.name
      case 'literal': return node.text
      case 'parenthesized': return `(${this.renderType(node.type, references)})`
      case 'reference': {
        const name = node.target.kind === 'type-parameter'
          ? this.parameterNames.get(node.target.parameter) ?? node.name

View on GitHub (pinned to b150a551b8)

Solutions

  1. Fix the type graph so every referenced member id exists; regenerate the graph.

When it happens

Trigger: Thrown at packages/typert/generator/src/renderer.ts:77 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/70d84f0cc3f2f030. Report an issue: GitHub.