{"record":{"id":"26cb11101b16f205","repo":"deepseek-ai/deepseek-harness","slug":"typert-loader-configured-package-pkgname-doe","errorCode":null,"errorMessage":"typert-loader: configured package \"${pkgName}\" does not export \"${TYPERT_HOST_EXPORT}\"","messagePattern":"typert-loader: configured package \"(.+?)\" does not export \"(.+?)\"","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/loader/src/index.ts","lineNumber":336,"sourceCode":"    let pkgPath: string\n    try {\n      pkgPath = require.resolve(`${pkgName}/package.json`)\n    } catch (cause) {\n      if (configured.has(pkgName)) {\n        throw new Error(\n          `typert-loader: configured package \"${pkgName}\" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages`,\n          { cause },\n        )\n      }\n      // Not a resolvable package root: loader builtins (cordis:include) and\n      // subpath entries land here — permanently not a typert contributor.\n      artifactPath.set(pkgName, null)\n      return null\n    }\n    const pkg = JSON.parse(readFileSync(pkgPath, 'utf8')) as Record<string, unknown>\n    const rel = typertExportOf(pkgName, pkg.exports)\n    if (rel === undefined && configured.has(pkgName)) {\n      throw new Error(`typert-loader: configured package \"${pkgName}\" does not export \"${TYPERT_HOST_EXPORT}\"`)\n    }\n    const resolved = rel === undefined ? null : join(dirname(pkgPath), rel)\n    artifactPath.set(pkgName, resolved)\n    return resolved\n  }\n\n  const loadManifest = (pkgName: string, path: string): Promise<TypertContribution> => {\n    let loading = manifests.get(pkgName)\n    if (loading === undefined) {\n      loading = import(pathToFileURL(path).href).then(\n        (mod: Record<string, unknown>) => validateTypertManifest(pkgName, mod.TYPERT),\n        (cause: unknown) => {\n          throw new Error(\n            `typert-loader: ${pkgName} exports \"${TYPERT_HOST_EXPORT}\" but importing ${path} failed: ${String(cause)}`,\n          )\n        },\n      )\n      manifests.set(pkgName, loading)","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/loader/src/index.ts#L318-L354","documentation":"Error \"typert-loader: configured package \"${pkgName}\" does not export \"${TYPERT_HOST_EXPORT}\"\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/loader/src/index.ts:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the typert host export to the package, or remove the package from the typert configuration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}