deepseek-ai/deepseek-harness · error
client-modules: bundle ${url} loaded without registering "${
Error message
client-modules: bundle ${url} loaded without registering "${id}" via __ModuleLoader__.load What it means
Error "client-modules: bundle ${url} loaded without registering "${id}" via __ModuleLoader__.load" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/client/modules/src/client/system.ts:120
/** Register one bundle factory, rejecting a script that executes twice without invalidation. */
private register(registration: ClientBundleRegistration): void {
const id = stripClientSuffix(registration.id)
if (this.bootstrapIds.has(id) || this.factories.has(id)) {
throw new Error(`client-modules: duplicate factory registration for "${registration.id}" (bundle executed twice without invalidate?)`)
}
this.factories.set(id, registration.factory)
}
/** Load one graph row so its factory is registered (idempotent per in-flight arrival). */
private arrive(row: BootModuleRow): Promise<void> {
const { id, url } = row
const pending = this.pendingArrival.get(id)
if (pending !== undefined) return pending
if (this.loadCache.has(id) || this.factories.has(id)) return Promise.resolve()
const task = this.loadBundle(url).then(() => {
if (!this.factories.has(id)) {
throw new Error(`client-modules: bundle ${url} loaded without registering "${id}" via __ModuleLoader__.load`)
}
}).finally(() => { this.pendingArrival.delete(id) })
this.pendingArrival.set(id, task)
return task
}
/** Register each unresolved dynamic request before registering its consumer. */
private async arriveGraphRow(row: BootModuleRow, open: readonly string[] = []): Promise<void> {
const cycleStart = open.indexOf(row.id)
if (cycleStart !== -1) {
throw new Error(
`client-modules: module arrival cycle ${[...open.slice(cycleStart), row.id].join(' -> ')} `
+ '(the host must reject this graph before serving it)',
)
}
const next = [...open, row.id]
for (const request of row.external) {
const id = stripClientSuffix(request)View on GitHub (pinned to b150a551b8)
Solutions
- Register the module id via __ModuleLoader__.load inside the bundle.
When it happens
Trigger: Thrown at packages/client/modules/src/client/system.ts:120 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/82a0912b7dec3953.
Report an issue: GitHub.