deepseek-ai/deepseek-harness · error
client-hmr: rebuilt frame for unknown entry "${id}" (not in
Error message
client-hmr: rebuilt frame for unknown entry "${id}" (not in the loader tree) What it means
Error "client-hmr: rebuilt frame for unknown entry "${id}" (not in the loader tree)" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/client/hmr/src/client/index.ts:107
if (el.getAttribute('data-plugin') === id) el.remove()
}
}
/**
* Mount the HMR driver: subscribe to the system SSE channel and hot-swap
* rebuilt entries.
* @param ctx - plugin context with `loader` and `modules` available.
*/
export function apply(ctx: Context): void {
// Both are declared injections (typed Context merges: `modules` from the
// client module loader package, `loader` from the vendored Loader).
const modLoader = ctx.modules
const loader: Loader = ctx.loader
async function reload(id: string): Promise<void> {
const entry = findEntry(loader, id)
if (entry === undefined) {
ctx.logger.warn(`client-hmr: rebuilt frame for unknown entry "${id}" (not in the loader tree)`)
return
}
// Invalidate first (drop stale factory + record — a live factory makes
// prefetch a no-op and re-registration a loud duplicate), then run the
// async half while the old fiber still serves: script loading registers
// the fresh factory with zero side effects (lazy CJS — module bodies run
// at materialization, not execution).
modLoader.invalidate(id)
await modLoader.prefetch(id)
const oldFiber = entry.fiber
if (oldFiber !== undefined) {
// Registry-first teardown (see module comment): the runtime record must
// be gone before the fiber's disposer emits internal/plugin, or the
// Loader flags the entry disabled.
const runtime = oldFiber.runtime
if (runtime !== null) entry.ctx.registry.delete(runtime.callback)
// Drain the unload: effect disposers (slots, subscriptions) must finishView on GitHub (pinned to b150a551b8)
Solutions
- Reload the page to resync the loader tree; if it persists, clear HMR state and restart the dev server.
When it happens
Trigger: Thrown at packages/client/hmr/src/client/index.ts:107 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/29595b6ac96b6db8.
Report an issue: GitHub.