{"record":{"id":"51cad1887bb250d5","repo":"deepseek-ai/deepseek-harness","slug":"typert-loader-configured-package-pkgname-can","errorCode":null,"errorMessage":"typert-loader: configured package \"${pkgName}\" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages","messagePattern":"typert-loader: configured package \"(.+?)\" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/loader/src/index.ts","lineNumber":323,"sourceCode":"  const dirty = new Set<string>()\n  let flushQueued = false\n  let active = true\n  ctx.effect(function* () {\n    yield () => {\n      active = false\n      dirty.clear()\n    }\n  }, 'typert loader lifetime')\n\n  const resolveArtifact = (pkgName: string): string | null => {\n    const cached = artifactPath.get(pkgName)\n    if (cached !== undefined) return cached\n    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  }","sourceCodeStart":305,"sourceCodeEnd":341,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/loader/src/index.ts#L305-L341","documentation":"Error \"typert-loader: configured package \"${pkgName}\" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/loader/src/index.ts:323 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the package to the composition package dependencies, or remove it from the packages list."],"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"}