deepseek-ai/deepseek-harness · error · TypertAnalysisError

typert(${face}): ${file}:${line}:${character}: TypeScript TS

Error message

typert(${face}): ${file}:${line}:${character}: TypeScript TS${code}: ${message}

What it means

Error "typert(${face}): ${file}:${line}:${character}: TypeScript TS${code}: ${message}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/typert/generator/src/analyzer.ts:565

      options: {
        ...registration.config.parsed.options,
        composite: false,
        incremental: false,
        noEmit: true,
        // Source-plane workspace aliases resolve referenced packages to source.
        // Widen only this diagnostic program's root so those imports do not
        // produce an artificial TS6059 before Typert checks the public edge.
        rootDir: this.options.root,
      },
    })
    const diagnostics = [
      ...program.getSyntacticDiagnostics(),
      ...program.getSemanticDiagnostics(),
    ].filter((diagnostic): diagnostic is ts.DiagnosticWithLocation => diagnostic.file !== undefined
      && diagnostic.start !== undefined
      && isWithin(diagnostic.file.fileName, registration.root))
    if (diagnostics.length === 0) return
    throw new TypertAnalysisError(
      diagnostics
        .map(diagnostic => formatProgramDiagnostic(this.options.root, registration.face, diagnostic))
        .join('\n'),
    )
  }

  private queueEdit(edit: SourceEdit): void {
    this.queuedEdit = edit
  }

  private applyEdit(edit: SourceEdit): void {
    const source = readFileSync(edit.file, 'utf8')
    writeFileSync(edit.file, source.slice(0, edit.position) + edit.text + source.slice(edit.position))
    this.caches.invalidate(edit.file)
  }
}

interface FaceAnalyzerOptions {

View on GitHub (pinned to b150a551b8)

Solutions

  1. Fix the TypeScript diagnostic at the reported file and position; run tsc on the face to see full context.

When it happens

Trigger: Thrown at packages/typert/generator/src/analyzer.ts:565 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/a6abbee61f0db3da. Report an issue: GitHub.