deepseek-ai/deepseek-harness · error · TypeGraphRenderError
alias ${id} has no type node
Error message
alias ${id} has no type node What it means
Error "alias ${id} has no type node" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/typert/generator/src/renderer.ts:221
default: return assertNever(member)
}
}
/**
* Render a named declaration without JSDoc.
* @param id - declaration symbol id.
* @returns exported TypeScript declaration text.
*/
renderDeclaration(id: SymbolId): string {
const declaration = this.declaration(id)
const parameters = this.renderTypeParameters(declaration.typeParameters)
if (declaration.kind === 'enum') {
const members = declaration.enumMembers?.map(member =>
` ${renderPropertyName(member.name)}${member.initializer === undefined ? '' : ` = ${member.initializer}`},`) ?? []
return [`export enum ${declaration.name} {`, ...members, '}'].join('\n')
}
if (declaration.kind === 'alias') {
if (declaration.type === undefined) throw new TypeGraphRenderError(`alias ${id} has no type node`)
return `export type ${declaration.name}${parameters} = ${this.renderType(declaration.type)};`
}
const extendsTypes = declaration.extends.map(type => this.renderType(type))
const implementsTypes = declaration.implements.map(type => this.renderType(type))
const heritage = [
extendsTypes.length === 0 ? '' : ` extends ${extendsTypes.join(', ')}`,
implementsTypes.length === 0 ? '' : ` implements ${implementsTypes.join(', ')}`,
].join('')
const prefix = declaration.kind === 'class' && declaration.abstract ? 'abstract ' : ''
const members = declaration.members.map(member => ` ${this.renderMember(member)};`)
return [`export ${prefix}${declaration.kind} ${declaration.name}${parameters}${heritage} {`, ...members, '}'].join('\n')
}
/**
* Find the transitive declaration closure referenced by members.
* @param memberIds - business-API member ids.
* @returns declarations in graph order, excluding no roots implicitly.
*/View on GitHub (pinned to b150a551b8)
Solutions
- Fix the alias so it resolves to a type node; regenerate the type graph.
When it happens
Trigger: Thrown at packages/typert/generator/src/renderer.ts:221 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/0e6c50d95c805646.
Report an issue: GitHub.