denoland/deno · error · TypeError
Invalid mutation '${type}' without value
Error message
Invalid mutation '${type}' without value What it means
Error "Invalid mutation '${type}' without value" thrown in denoland/deno.
Source
Thrown at ext/kv/01_db.ts:499
switch (mutation.type) {
case "delete":
type = "delete";
if (mutation.value) {
throw new TypeError("Invalid mutation 'delete' with value");
}
break;
case "set":
if (typeof mutation.expireIn === "number") {
expireIn = mutation.expireIn;
}
validateExpireIn(expireIn);
/* falls through */
case "sum":
case "min":
case "max":
type = mutation.type;
if (!ObjectHasOwn(mutation, "value")) {
throw new TypeError(`Invalid mutation '${type}' without value`);
}
value = serializeValue(mutation.value);
break;
default:
throw new TypeError("Invalid mutation type");
}
ArrayPrototypePush(this.#mutations, [key, type, value, expireIn]);
}
return this;
}
sum(key: Deno.KvKey, n: bigint): this {
ArrayPrototypePush(this.#mutations, [
key,
"sum",
serializeValue(new KvU64(n)),
undefined,
]);View on GitHub (pinned to 89f33cbef2)
When it happens
Trigger: Thrown at ext/kv/01_db.ts:499 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16).
Data as JSON: /api/errors/c2503b5b8d380598.
Report an issue: GitHub.