Skip to content
Latchkey
Monorepo Tools

Nx, Turborepo, Bazel, Lerna - monorepo CI errors.

Fix monorepo tooling errors in CI: Nx, Turborepo, Bazel, Lerna, and pnpm workspaces - affected detection, caching, and task graph failures.

Nx & Turborepo

Affected, cache, task graph.

Bazelisk ".bazelversion" version not foundFix Bazelisk "could not download Bazel" / version-from-.bazelversion not found in CI - the version pinned in… Bazel "OutOfMemoryError: Java heap space"Fix Bazel "java.lang.OutOfMemoryError: Java heap space" or a "Killed" server in CI - the Bazel JVM or an acti… Bazel "missing input file"Fix Bazel "ERROR: missing input file" in CI - a target lists a source file in srcs or data that does not exis… Bazel "no such package"Fix Bazel "ERROR: no such package" in CI - Bazel could not find a BUILD file for the package path, or the ext… Bazel "no such target"Fix Bazel "ERROR: no such target //pkg:label" in CI - the package was found but it declares no rule by that n… Bazel "Repository rule ... failed"Fix Bazel "Repository rule X failed" in CI - an external repository rule (download, git_repository, or a cust… Lerna "ENOWORKSPACES"Fix "lerna ERR! ENOWORKSPACES" in CI - Lerna (v7+) cannot find your package-manager workspaces config, so it… "Cannot find configuration for task"Fix Nx "Cannot find configuration for task project:target" in CI - a missing target on the project, a typo, o… "Cannot find configuration for task"Fix Nx "Cannot find configuration for task" in CI. The project has no target with that name, or a stale proje… "Cannot find configuration for task"Fix Nx "Cannot find configuration for task project:target" in CI - the target you asked Nx to run is not decl… Nx "Cannot find nx.json"Fix Nx "Cannot find nx.json" / "not an Nx workspace" in CI - Nx ran outside the workspace root or the checkou… "Cannot read cache directory"Fix Nx "Cannot read cache" and unexpected cache misses in CI - the local cache is not restored between jobs o… Nx "Cannot read properties of undefined (reading 'targets')"Fix Nx "TypeError: Cannot read properties of undefined (reading 'targets')" in CI - Nx tried to read targets… "Cannot find project"Fix Nx "Cannot find project X" in CI - the project name you referenced is not registered in the workspace, of… "Daemon process ... exited"Fix Nx "Daemon process exited unexpectedly" in CI - the Nx daemon crashed or was killed on the runner. Disabl… "NX Daemon process terminated"Fix "NX Daemon process terminated and closed the connection" in CI - a crashed Nx daemon, often from memory p… "enforce-module-boundaries"Fix Nx "@nx/enforce-module-boundaries" lint errors in CI - an import crosses a project tag or type boundary t… Nx "Failed to process project graph"Fix Nx "Failed to process project graph" in CI - Nx could not build the project graph because a config file,… "Failed to process project graph"Fix Nx "Failed to process project graph" in CI. A malformed project.json, a plugin error, or a circular depen… "Failed to process project graph"Fix Nx "Failed to process project graph" in CI - a plugin that throws while building the graph, a malformed p… "Failed to process project graph"Fix Nx "Failed to process project graph" in CI - Nx could not build the project graph because a config, plugi… Nx inputs/outputs misconfigFix Nx cache misses and "no outputs captured" warnings in CI - task `outputs` pointing at the wrong path, or… "Maximum call stack size exceeded"Fix Nx "Maximum call stack size exceeded" while building the project graph in CI - a circular dependency betw… "enforce-module-boundaries"Fix Nx "@nx/enforce-module-boundaries" lint errors in CI - an import that crosses a tag constraint, a missing… "nx migrate" failedFix "nx migrate" failures in CI - a migration step threw while updating the workspace, often from a version m… nx run-many ran nothingFix Nx `nx run-many` selecting zero projects in CI - a `--projects` pattern matching nothing, a target no pro… "Running target ... failed"Fix Nx "Running target X for project Y failed" in CI - the underlying executor exited nonzero, so Nx marks th… Nx "externalDependencies ... could not be found"Fix Nx "The externalDependencies ... could not be found" in CI - a target input names an npm package that is… "project does not exist"Fix Nx "The \"X\" project does not exist in this workspace" in CI - a renamed project, a missing project.json… "project does not exist"Fix Nx "The X project does not exist in this workspace" in CI. The project was renamed, has no project.json,… "Unable to resolve executor"Fix Nx "Unable to resolve <plugin>:<executor>" / "Cannot find executor" in CI - a target in project.json refe… "--base" / "--head" mismatchFix Nx `nx affected --base`/`--head` selecting the wrong projects in CI - an inverted range, a default-branch… "requires a base and head"Fix Nx "affected requires a base and head" in CI - Nx cannot compute affected projects without two git refs t… Nx affected "Unable to determine base and head"Fix Nx affected "Unable to determine SHAs for base and head" in CI - Nx cannot resolve the two git refs it di… "Unable to find base ... in git history"Fix Nx "Unable to find base \"X\" in the git history" / SHA errors in CI - caused by a shallow clone where th… nx affected sees nothing (shallow clone)Fix Nx affected running everything or nothing in CI because the base SHA is missing from a shallow clone - fe… "affected base SHA not found"Fix Nx affected "base SHA not found" in CI. A shallow clone (fetch-depth 1) means the base commit is not in h… Nx Cloud "access token" unauthorizedFix Nx Cloud access token errors in CI - Nx could not authenticate to Nx Cloud because the access token is mi… Nx Cloud "unable to connect"Fix Nx Cloud "unable to connect" in CI - the runner has no NX_CLOUD_ACCESS_TOKEN, so distributed caching and… "Nx Cloud: Unauthorized"Fix Nx Cloud "Unauthorized" / "invalid access token" errors in CI - a missing or read-only NX_CLOUD_ACCESS_TO… Nx Cloud "401"Fix Nx Cloud 401 Unauthorized in CI - the access token reached Nx Cloud but was rejected as invalid, revoked,… "Nx Cloud cannot connect"Fix Nx Cloud connection and token errors in CI. A missing or invalid access token, or a transient network bli… Nx cache miss / staleFix Nx computation cache misses and stale-cache results in CI - non-deterministic inputs, a missing remote ca… "Daemon process error"Fix Nx "Daemon process error" / terminated in CI. The background Nx daemon crashed or could not start, usuall… project.json "invalid"Fix Nx invalid project.json in CI - a project configuration fails schema validation, so Nx cannot register th… "out of memory project graph"Fix Nx out-of-memory while constructing the project graph in CI. A large workspace exceeded the Node heap dur… "run-many no projects"Fix Nx run-many running nothing in CI. The projects pattern or target matched no projects, so the command exi… dependsOn "task not found"Fix Nx dependsOn referencing a target that does not exist in CI - a task lists a dependency Nx cannot find, s… pnpm "ERR_PNPM_FETCH_404"Fix pnpm "ERR_PNPM_FETCH_404" in CI - pnpm tried to fetch a package from the registry that should have resolv… pnpm "NO_MATCHING_VERSION_INSIDE_WORKSPACE"Fix pnpm "ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE" in CI - a workspace: dependency requests a version o… pnpm "ERR_PNPM_OUTDATED_LOCKFILE"Fix pnpm "ERR_PNPM_OUTDATED_LOCKFILE" in CI - pnpm-lock.yaml does not match the package.json manifests and --… pnpm "ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL"Fix pnpm "ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL" in CI - a script run across the workspace with pnpm -r failed in… Rush "rush.json config file was not found"Fix Rush "Unable to find rush.json configuration file" in CI - Rush walked up from the working directory and… Rush "Your "rush update" is out of date"Fix Rush "The shrinkwrap file is out of date" / rush install needing rush update in CI - a package.json chang… turbo --filter="...[ref]" no baseFix Turborepo --filter affected selecting nothing or erroring in CI - the [ref] base is not in the shallow cl… "No package found with name"Fix Turborepo "--filter" matching zero packages in CI - a wrong package name, a bad scope pattern, or a git r… "invalid --filter"Fix Turborepo `--filter` syntax errors in CI - a bad scope/path/since pattern, an unfetched `[ref]` git base,… "command not found in pipeline"Fix Turborepo "command X not found" in CI. The task is not defined under tasks (or pipeline) in turbo.json, o… Turbo "Could not find the following tasks in project"Fix Turborepo "Could not find the following tasks in project" in CI - the task you ran is not defined in turb… "could not find turbo.json"Fix Turborepo "could not find turbo.json" in CI - turbo runs outside the repo root or the config file is miss… "could not resolve workspace"Fix Turborepo "could not resolve workspace" in CI - turbo cannot map packages to a workspace, usually from a… "Could not resolve workspace"Fix Turborepo "could not resolve workspace / package not found" in CI. Turbo could not map a package name to… "Could not resolve workspaces"Fix Turborepo "error preparing engine: Could not resolve workspaces" in CI - a missing workspaces field, wron… "cyclic dependency detected"Fix Turborepo "cyclic dependency detected" in CI - two packages or tasks depend on each other, so turbo canno… Turbo "error preparing engine: Could not find the package"Fix Turborepo "error preparing engine: Could not find the package X in your workspace" in CI - the package na… "error preparing engine"Fix Turborepo "error preparing engine: Invalid task configuration" in CI - a task in turbo.json references a… "failed to contact remote cache"Fix Turborepo "failed to contact remote cache" in CI - turbo could not reach the remote cache endpoint, usual… "failed to read package.json"Fix Turborepo "failed to read package.json" in CI - turbo could not parse a package manifest, usually invalid… Turbo "failed to read turbo.json"Fix Turborepo "failed to read turbo.json" in CI - Turbo could not parse the config because the file is missin… "globalDependencies" missingFix Turborepo serving stale cached tasks in CI - a root config file (tsconfig, .env, lockfile) changed but is… "no \"packageManager\" field"Fix Turborepo "package.json: no \"packageManager\" field" in CI - turbo cannot infer the package manager. Add… "no output files found for task"Fix Turborepo "no output files found for task" in CI - the task declares no matching outputs, so turbo caches… "no output files found"Fix Turborepo "no output files found for task" in CI - a task whose `outputs` glob does not match where it ac… "No tasks were executed"Fix Turborepo "No tasks were executed" in CI. A filter matched no packages, or no package defines the task, s… "No tasks were executed"Fix Turborepo "No tasks were executed as part of this run" in CI - the task name or filter matched no package… "pipeline" is now "tasks"Fix Turborepo 2.0 failing because turbo.json still uses "pipeline" - version 2 renamed the field to "tasks",… Turbo "root task ... must not depend on"Fix Turborepo "root task //#build (turbo run build) looks like it invokes turbo and might cause a loop" / roo… "task ... not found in pipeline"Fix Turborepo "Could not find task in pipeline" / "task not found in pipeline" in CI - a task missing from tu… "unable to calculate ... hash"Fix Turborepo "unable to calculate file hash" in CI - turbo cannot hash inputs because git is unavailable, th… "cache hit but stale"Fix Turborepo stale cache hits in CI. turbo replayed a cached result, but the inputs hash missed a file or en… Turborepo cache missFix Turborepo cache misses in CI - every run rebuilding because the remote cache is not configured, inputs va… "filter since-ref base not found"Fix Turborepo --filter "[ref]" base errors in CI. A shallow clone means the comparison ref is missing, so tur… "globalDependencies not hashed"Fix Turborepo stale results from unhashed global files in CI. Root configs changed but were not in globalDepe… Turbo remote cache "401 unauthorized"Fix Turborepo remote cache "401 unauthorized" in CI - Turbo could not authenticate to the remote cache becaus… "remote cache 401/403"Fix Turborepo remote cache 401/403 errors in CI. A missing token, wrong team slug, or expired credential bloc… remote cache "403" (TURBO_TOKEN)Fix Turborepo remote cache 403 in CI - turbo reached the cache but the TURBO_TOKEN or TURBO_TEAM was rejected… TURBO_TOKEN / TURBO_TEAMFix Turborepo remote cache not engaging in CI - missing TURBO_TOKEN/TURBO_TEAM, a mismatched team slug, or a…

Bazel

BUILD files, remote cache.

"Config value ci is not defined"Fix Bazel "Config value \"ci\" is not defined" in CI - a `--config=ci` referencing a config group missing fro… "Analysis of target failed"Fix Bazel "ERROR: Analysis of target failed" in CI. A rule attribute, dependency, or provider mismatch stoppe… bazel query emptyFix Bazel `bazel query` returning nothing or erroring in CI - a wrong target pattern, an unquoted query expre… flaky bazel testFix Bazel flaky test failures in CI - non-hermetic tests, timeouts on a loaded runner, or order/parallelism d… "Build did NOT complete successfully"Fix Bazel "ERROR: Build did NOT complete successfully" in CI. This summary line follows the real failure - re… "BUILD file not found"Fix Bazel "BUILD file not found in any of the following directories" in CI - a directory referenced as a pack… "C++ compilation ... failed"Fix Bazel "C++ compilation of rule failed" in CI - the cc_toolchain ran the compiler and it exited non-zero,… "Cannot run program"Fix Bazel java.io.IOException "Cannot run program" in CI. A toolchain binary (compiler, java, node) is not on… "cycle in dependency graph"Fix Bazel "ERROR: cycle in dependency graph" in CI - two or more targets depend on each other directly or tra… "Error computing the main repository mapping"Fix Bazel "ERROR: Error computing the main repository mapping" in CI - a WORKSPACE or MODULE.bazel evaluation… "error loading package"Fix Bazel "error loading package" in CI - a Starlark evaluation failure in a BUILD or .bzl file: bad load(),… "error loading package"Fix Bazel "ERROR: error loading package" in CI - a BUILD file failed to evaluate because of a Starlark error,… "error loading package"Fix Bazel "error loading package" in CI. A BUILD or .bzl file failed to evaluate: a Starlark error, bad load(… "ERROR: no such package"Fix Bazel "ERROR: no such package" in CI - Bazel could not find a BUILD or BUILD.bazel file for the package p… "ERROR: no such target"Fix Bazel "ERROR: no such target" in CI - the package exists but no rule or file with that target name is dec… "ERROR: Skipping ...: no such target"Fix Bazel "ERROR: Skipping '//...': no such target" in CI - a target pattern on the command line matched a pa… "Failed to load Starlark extension"Fix Bazel "ERROR: Failed to load Starlark extension" in CI - a load() statement pointed at a .bzl file or rep… "Failed to query remote execution capabilities"Fix Bazel "Failed to query remote execution capabilities" in CI - Bazel could not reach or authenticate to th… "INTERNAL: Failed to upload"Fix Bazel "INTERNAL: Failed to upload" to the remote cache in CI - Bazel could not write action outputs to th… "java.lang.OutOfMemoryError"Fix Bazel "java.lang.OutOfMemoryError: Java heap space" in CI - the Bazel server JVM ran out of heap analyzin… "linux-sandbox ... Permission denied"Fix Bazel "linux-sandbox: Permission denied" in Docker CI - the sandbox needs kernel namespace privileges the… "missing input file"Fix Bazel "ERROR: missing input file" in CI. A source listed in srcs or data does not exist on disk - usually… "module not found" (bzlmod)Fix Bazel bzlmod "module ... not found in registry" / version resolution errors in CI - a missing bazel_dep,… "no matching toolchains found"Fix Bazel "While resolving toolchains for target ...: no matching toolchains found" in CI - no registered too… "no such attribute ... in rule"Fix Bazel "no such attribute 'X' in 'cc_binary' rule" in CI - a BUILD rule was given an attribute the rule do… "no such package"Fix Bazel "ERROR: no such package \"//path\"" in CI - a missing BUILD file, a wrong label path, or a package… "no such package"Fix Bazel "ERROR: no such package" / BUILD file not found in CI. Bazel could not find a BUILD or BUILD.bazel… "no such target"Fix Bazel "no such target \"//pkg:name\"" in CI - the package loads but the target name does not exist, or a… "process ... terminated ... sandbox"Fix Bazel sandbox "process terminated" and missing /dev or path errors in CI - an action failed inside the sa… "could not be fetched"Fix Bazel "Repository \"X\" could not be fetched" / download errors in CI - a transient network failure, a de… "no such target"Fix Bazel "ERROR: Skipping target: no such target" in CI. The package exists but has no rule with the name in… "only supported from within a workspace"Fix Bazel "The 'build' command is only supported from within a workspace" in CI - Bazel ran in a directory wi… "missing dependency declarations"Fix Bazel "this rule is missing dependency declarations for the following files" in CI - strict dependency ch… "undeclared inclusion(s) in rule"Fix Bazel "ERROR: undeclared inclusion(s) in rule" in CI - a C/C++ source included a header that is not in th… "undeclared output"Fix Bazel "output was not created" / undeclared output errors in CI - an action produced or failed to produce… "use_repo" missing declarationFix Bazel "repository not declared" / missing use_repo in CI - a module extension created a repo that MODULE.… "action failed: exit code 1"Fix Bazel "action failed (Exit 1)" in CI. A build action ran a tool that returned non-zero - read the tool ou… "missing ... expected ... but got ..." (BwoB)Fix Bazel Build without the Bytes "missing blob" / remote cache eviction errors in CI - a needed output was e… "not found in registry"Fix Bazel bzlmod "module ... not found in registries" in CI - a bazel_dep names a module or version that the… gazelle BUILD out of dateFix Bazel Gazelle "BUILD files are out of date" diff checks in CI - generated BUILD files not regenerated aft… hermetic toolchain missingFix Bazel "no matching toolchains" / non-hermetic build failures in CI - a build relying on a host compiler/S… "DEADLINE_EXCEEDED"Fix Bazel remote cache "DEADLINE_EXCEEDED" in CI - a gRPC call to the remote cache or executor did not comple… "remote cache connection failed"Fix Bazel remote cache connection failures in CI. A transient network or auth blip to the gRPC/HTTP cache bac… Bazel remote cache errorFix Bazel remote cache errors in CI - "Failed to query remote execution capabilities" and upload/download fai… remote execution failureFix Bazel remote execution failures in CI - "Remote Execution Strategy unavailable", capability mismatches, o… "repository download failed"Fix Bazel repository rule download failures in CI. A network error or checksum mismatch stopped an external r… rules_js / rules_nodejsFix Bazel "no toolchain found for @rules_nodejs//nodejs" / rules_js npm errors in CI - a missing toolchain re… "OutOfMemoryError" (Bazel server)Fix Bazel server "OutOfMemoryError: Java heap space" in CI - the Bazel JVM server ran out of heap during anal… "server out of memory"Fix Bazel server OOM in CI. The JVM server or the runner ran out of memory under a large project graph or hig… "MODULE.bazel error"Fix Bazel WORKSPACE / MODULE.bazel resolution errors in CI. A bazel_dep, version, or registry problem stopped… WORKSPACE deprecatedFix Bazel errors after WORKSPACE is disabled by default (Bazel 7+/8) - repos defined in WORKSPACE no longer r… "could not download Bazel"Fix Bazelisk "could not download Bazel" in CI - Bazelisk read .bazelversion and failed to fetch that Bazel re…

Workspaces

Lerna, pnpm/yarn workspaces.

"sibling workspace not built"Fix "Cannot find module" from a sibling workspace package in CI. The dependency package was not built before… "No unreleased changesets"Fix Changesets "No unreleased changesets found" / nothing to version in CI - missing changeset files, or `cha… "circular workspace dependency"Fix circular dependencies between workspace packages in CI. Two packages depend on each other, so the build o… lerna bootstrap failedFix Lerna bootstrap and hoisting failures in CI - a removed command in Lerna 7+, a failed lifecycle in a pack… "lerna ERR! ... not found"Fix Lerna "lerna ERR! ... package not found" / "No packages found" in CI - a wrong --scope filter, a missing… lerna publish from-gitFix Lerna "publish from-git" failures in CI - no matching version tags in the checkout, a shallow clone missi… "lerna run failed"Fix Lerna bootstrap / run failures in CI. A package script failed during lerna run, or legacy lerna bootstrap… lerna independent versioningFix Lerna independent versioning bumping wrong/too many packages in CI - `version: "independent"` plus conven… "npm workspace not found"Fix "npm ERR! No workspaces found" / workspace not found in CI. A --workspace name or path does not match any… npm --if-presentFix npm workspaces failing in CI when a package lacks a script - use `--if-present` so `npm run <script> --wo… "No workspaces found"Fix npm "No workspaces found" / yarn "Workspace not found" in CI - a `--workspace` name that does not match,… pnpm --filter ...^Fix pnpm `--filter` selecting the wrong packages in CI - misusing the `...`, `^`, and `[ref]` operators, or a… "catalog: entry not found"Fix pnpm "catalog entry not found" / unresolved `catalog:` specifiers in CI - a package using `"catalog:"` wi… "ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL"Fix pnpm "ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL" in CI - a recursive workspace script failed in one package, fail… "RECURSIVE_RUN_FIRST_FAIL"Fix pnpm ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL in CI. A package script failed during a recursive pnpm -r run, abo… "workspace:* not found"Fix pnpm "no matching version found for workspace:*" in CI. A workspace dependency name does not match any pa… "workspace:" protocol errorFix "Unsupported URL Type \"workspace:\"" in CI - a `workspace:` dependency installed by a tool (often npm) t… rush shrinkwrap out of dateFix Rush "The shrinkwrap file is out of date" / "rush install" failures in CI - package.json edited without `… syncpack version mismatchFix syncpack "mismatched versions" / "list-mismatches" failures in CI - the same dependency pinned to differe… "phantom dependency"Fix workspace phantom dependency errors in CI. Code imported a package it never declared, which works under h… "workspace: protocol unsupported"Fix "Unsupported URL Type workspace:" in CI. An older npm (or a tool that does not understand the workspace p… "Workspace doesn't exist"Fix Yarn "Workspace X doesn't exist" in CI. The yarn workspace name does not match any package in the workspa… "workspaces focus" missingFix Yarn "Command not found: workspaces focus" in CI - the workspace-tools plugin not installed on Yarn Berry… "on the \"workspace\" registry"Fix yarn "Couldn't find package X on the \"workspace\" registry" in CI - a workspace dependency whose name or…
Explore other topics