Fix guides / Vercel: "No Output Directory named 'dist' found"
How to fix Vercel "No Output Directory named 'dist' found after the Build completed"
The build log looks fine, then the deploy fails with Error: No Output Directory named "dist" found after the Build completed (or "public" or "build"). Vercel looked in one folder and your build wrote to another, or wrote nothing.
Why it happens
- The Framework Preset is "Other", so Vercel expects
public, while Vite writesdistand Create React App writesbuild. - The app lives in a subfolder (common in Bolt and Cursor exports, such as
frontend/), but the Root Directory is the repo root. - The build command is wrong, so nothing is built. For example
npm run devor an empty command. vite.configsets a custombuild.outDir.
Fix
- Open the project in Vercel, then Settings, Build and Deployment (called General on older projects).
- Set Framework Preset to Vite, Create React App, or Next.js as appropriate.
- Set Root Directory to the folder that holds the app's
package.json. - Check Build Command is
npm run buildand Output Directory matches what the build creates (Vite:dist, CRA:build; leave blank for Next.js). - Redeploy.
Not sure where the output goes? Run npm run build locally and look at which folder appears.
If it is a single-page app
After it deploys, refreshing a sub-page may 404. See the SPA refresh guide.
Check the fix
- The deployment shows Ready.
- The live URL loads and the browser console has no errors.
Still stuck? No shame in it: these bugs hide in places your AI builder cannot see. Send me the error and your repo and I will fix it as a pull request within 24 hours, explained in plain English, for $49. Several things broken? The $149 Full Rescue covers up to 3 issues plus a security pass, within 72 hours. Not fixed means full refund.
Quick Fix, $49Full Rescue, $149Ask first
Quick Fix, $49Full Rescue, $149Ask first
Last updated 2026-10-21.