deepseek-ai/deepseek-harness · error · Error

typert-loader: configured package "${pkgName}" cannot be res

Error message

typert-loader: configured package "${pkgName}" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages

What it means

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.

Source

Thrown at packages/typert/loader/src/index.ts:323

  const dirty = new Set<string>()
  let flushQueued = false
  let active = true
  ctx.effect(function* () {
    yield () => {
      active = false
      dirty.clear()
    }
  }, 'typert loader lifetime')

  const resolveArtifact = (pkgName: string): string | null => {
    const cached = artifactPath.get(pkgName)
    if (cached !== undefined) return cached
    let pkgPath: string
    try {
      pkgPath = require.resolve(`${pkgName}/package.json`)
    } catch (cause) {
      if (configured.has(pkgName)) {
        throw new 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`,
          { cause },
        )
      }
      // Not a resolvable package root: loader builtins (cordis:include) and
      // subpath entries land here — permanently not a typert contributor.
      artifactPath.set(pkgName, null)
      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
  }

View on GitHub (pinned to b150a551b8)

Solutions

  1. Add the package to the composition package dependencies, or remove it from the packages list.

When it happens

Trigger: Thrown at packages/typert/loader/src/index.ts:323 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/51cad1887bb250d5. Report an issue: GitHub.