lerna/lerna · error · ValidationError

EUNCOMMIT

EUNCOMMIT

Error message

Working tree has uncommitted changes, please commit or remove the following changes before continuing:
${uncommitted.join("\n")}

What it means

Error "Working tree has uncommitted changes, please commit or remove the following changes before continuing: ${uncommitted.join("\n")}" thrown in lerna/lerna.

Source

Thrown at libs/core/src/lib/check-working-tree.ts:41

}

export function throwIfReleased({ refCount }) {
  if (refCount === "0") {
    throw new ValidationError(
      "ERELEASED",
      "The current commit has already been released. Please make new commits before continuing."
    );
  }
}

const EUNCOMMIT_MSG =
  "Working tree has uncommitted changes, please commit or remove the following changes before continuing:\n";

export function mkThrowIfUncommitted(options = {}) {
  return function throwIfUncommitted(opts: { isDirty?: boolean }) {
    if (opts.isDirty) {
      return collectUncommitted(options).then((uncommitted) => {
        throw new ValidationError("EUNCOMMIT", `${EUNCOMMIT_MSG}${uncommitted.join("\n")}`);
      });
    }
  };
}

export const throwIfUncommitted = mkThrowIfUncommitted();

View on GitHub (pinned to 35d15a1567)

When it happens

Trigger: Thrown at libs/core/src/lib/check-working-tree.ts:41 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of lerna/lerna@35d15a1567 (2026-08-27). Data as JSON: /api/errors/2809fbd1ec8b4bb7. Report an issue: GitHub.