Dependabot "can't resolve your dependency files" in CI
By Daniel Zoghalchali·Latchkey
Dependabot located the ecosystem you configured but could not parse a consistent dependency graph from the files in the target directory. Either the manifest is invalid, the lockfile is out of sync, or the directory in dependabot.yml points somewhere without a manifest.
What this error means
The Dependabot tab reports "Dependabot can't resolve your <ecosystem> dependency files" or "dependency file <path> not found", and the update run ends without opening PRs.
Dependabot
Dependabot can't resolve your JavaScript dependency files.
The dependency file "/frontend/package.json" was not found.
Diagnose it: did the report reach the service?
Coverage and quality integrations fail in two distinct places: the report was never produced, or it was produced and the upload was rejected. Establish which before touching tokens.
Terminal
# 1. does the report exist and is it non-empty?
ls -la coverage/ && head -5 coverage/lcov.info
# 2. does it reference paths the service can map to the repo?
grep "^SF:" coverage/lcov.info | head -5
# 3. did the upload actually succeed, or just not fail the step?# most uploaders exit 0 on a rejected upload unless told otherwise
Common causes
The directory in dependabot.yml is wrong
The directory: value does not contain the manifest for the ecosystem, so Dependabot reports the file as not found.
A malformed manifest or an out-of-sync lockfile
Invalid JSON/TOML/YAML in the manifest, or a lockfile that does not match it, stops Dependabot from building a resolvable graph.
How to fix it
Point directory at the real manifest location
Confirm where the manifest lives relative to the repo root.
Set directory to that path (use directories for multiple roots).
Re-run "Check for updates" from the Dependabot tab.
Keep directory (or directories) aligned with actual manifest paths.
Commit lockfiles that match their manifests.
Validate manifest syntax in CI before merging changes to it.
Frequently asked questions
What causes Dependabot "can't resolve your dependency files" in CI?
There are 2 common causes: the directory in dependabot.yml is wrong and a malformed manifest or an out-of-sync lockfile. The directory: value does not contain the manifest for the ecosystem, so Dependabot reports the file as not found.
How do I fix Dependabot "can't resolve your dependency files" in CI?
There are 2 fixes depending on which cause you have: point directory at the real manifest location and repair the manifest and relock. Work through them in order, since the first is the most common.
What does Dependabot "can't resolve your dependency files" in CI actually mean?
The Dependabot tab reports "Dependabot can't resolve your <ecosystem> dependency files" or "dependency file <path> not found", and the update run ends without opening PRs.
How do I stop Dependabot "can't resolve your dependency files" in CI happening again?
Keep directory (or directories) aligned with actual manifest paths. The prevention section lists 3 changes that keep it from recurring.