deepseek-ai/deepseek-harness · error · TypeGraphRenderError

type graph references missing node ${id}

Error message

type graph references missing node ${id}

What it means

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

Source

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

    this.nodes = new Map(graph.nodes.map(node => [node.id, node]))
    this.declarations = new Map(graph.declarations.map(declaration => [declaration.id, declaration]))
    this.members = new Map(graph.declarations.flatMap(declaration => declaration.members.map(member => [member.id, member] as const)))
    for (const declaration of graph.declarations) {
      this.indexParameters(declaration.typeParameters)
      for (const member of declaration.members) {
        if ('signature' in member) this.indexParameters(member.signature.typeParameters)
      }
    }
  }

  /**
   * Resolve a node id or fail with the broken edge.
   * @param id - graph-local type node id.
   * @returns the referenced node.
   */
  node(id: TypeNodeId): TypeNodeModel {
    const node = this.nodes.get(id)
    if (node === undefined) throw new TypeGraphRenderError(`type graph references missing node ${id}`)
    return node
  }

  /**
   * 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.

View on GitHub (pinned to b150a551b8)

Solutions

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

When it happens

Trigger: Thrown at packages/typert/generator/src/renderer.ts:55 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/09df15d64f62063e. Report an issue: GitHub.