deepseek-ai/deepseek-harness · error · Error
typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" bu
Error message
typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" but importing ${path} failed: ${String(cause)} What it means
Error "typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" but importing ${path} failed: ${String(cause)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/typert/loader/src/index.ts:349
return null
}
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8')) as Record<string, unknown>
const rel = typertExportOf(pkgName, pkg.exports)
if (rel === undefined && configured.has(pkgName)) {
throw new Error(`typert-loader: configured package "${pkgName}" does not export "${TYPERT_HOST_EXPORT}"`)
}
const resolved = rel === undefined ? null : join(dirname(pkgPath), rel)
artifactPath.set(pkgName, resolved)
return resolved
}
const loadManifest = (pkgName: string, path: string): Promise<TypertContribution> => {
let loading = manifests.get(pkgName)
if (loading === undefined) {
loading = import(pathToFileURL(path).href).then(
(mod: Record<string, unknown>) => validateTypertManifest(pkgName, mod.TYPERT),
(cause: unknown) => {
throw new Error(
`typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" but importing ${path} failed: ${String(cause)}`,
)
},
)
manifests.set(pkgName, loading)
}
return loading
}
const qualifies = (entryName: string): boolean => {
if (configured.has(entryName)) return true
for (const entry of ctx.loader.entries()) {
if (entry.options.name === entryName && entry.fiber !== undefined && !entry.disabled) return true
}
return false
}
/** Reconcile one entry name against the live loader entries; a mount returns its async task. */View on GitHub (pinned to b150a551b8)
Solutions
- Fix the import failure cause reported in the message; check the exported path builds and loads under Node.
When it happens
Trigger: Thrown at packages/typert/loader/src/index.ts:349 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/d1a80fceedc637f9.
Report an issue: GitHub.