cd /news/developer-tools/could-not-resolve-on-deploy-but-it-w… · home › topics › developer-tools › article
[ARTICLE · art-160155] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

“Could not resolve” on deploy, but it works on my computer

A developer at Axonscape's Launchpad documented a common deploy failure in which builds break with "Could not resolve" errors for imports whose capitalization doesn't match the actual filename, even though the app runs fine locally. Because macOS and Windows treat filenames case-insensitively while Linux build servers do not, mismatched imports—often introduced by AI coding tools—surface only at deploy time; the fix is to align every import path with the real file's capitalization, using `git mv -f` for renames. The team offers a free launch check that scans a public GitHub repo or code zip for this and other pre-launch breakages without retaining data.

by read1 min views3 publishedOct 29, 2026

The build fails with Could not resolve './components/navbar' while the app runs fine locally. Usually it's capital letters: Mac and Windows ignore them, the build server doesn't.

The deploy fails with Could not resolve "./components/navbar" from "src/App.tsx" (or Module not found: Can't resolve), yet npm run dev and npm run build work on your computer.

The import says navbar and the file is Navbar.tsx. macOS and Windows treat those as the same name; the Linux machines that build your app don't. AI tools write mismatched capitals easily, and nothing on your computer complains. The other cause: the file was never committed.

git mv -f old new: a plain rename often isn't seen. Paste this into Lovable, Bolt, v0, Replit or Cursor:

My app builds on my computer but fails when deployed (on Linux) with "Could not resolve". Find every import whose path differs from the real file's name in capital letters, and make each one match the file exactly. Don't change anything else.

The full page, with the request ready to copy, is at launchpad.axonscape.com/fix/could-not-resolve-works-locally. I work on Launchpad by Axonscape, which runs a free launch check for apps built with AI tools: it finds this and the other things that break at launch, from a public GitHub repo or a .zip of the code, and keeps nothing.

── more in #developer-tools 4 stories · sorted by recency
── more on @axonscape 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/could-not-resolve-on…] indexed:0 read:1min 2026-10-29 · —