Vibe Coding Unstuck Kit
Published · Updated
When your AI-built app won't install, build, run or deploy: tested scripts find the real cause on your machine (Node version, lockfile, import letter case, env vars, ports, Supabase errors), link each finding to a verified fix, and write a bug report with secrets removed that your AI can actually act on.
Download free (.zip)Feedback / Report a problemFree, no sign-up. Want the week's best kits by email? Get the weekly roundup (optional).
What's in the kit
unstuck/ folder (doctor.mjs, capture.mjs, repro.mjs, ports.mjs, lib/, fixes/ with 6 fix pages and an index, prompts.md), drop-in rules (AGENTS-unstuck.md, .cursor/rules/unstuck.mdc), setup guide for Cursor, Claude Code, Lovable, v0, Bolt and Replit, real examples, troubleshooting and sources.
- doctor: checks Node vs every installed package, lockfile sync (the pnpm/npm ci failures you otherwise only see on Vercel), import upper/lower case, env var names and leaked NEXT_PUBLIC_/VITE_ secrets, ports and Supabase settings in seconds, without changing anything
- capture: runs your build, dev server or any command (or reads a pasted Vercel log) and names the real error first, e.g. a Vite 'styleText' crash that means 'Node too old'
- repro: one ask-ai.md bug report (versions, findings, error, the code at the error line, configs, env NAMES only), with secrets removed
- Fixes for 52 specific problems, each marked verified-on-a-real-broken-project or docs-only, for Next.js 15/16, Vite 8, npm/pnpm, Supabase and Vercel
- 6 prompts plus Cursor/Claude Code/AGENTS.md rules that make your AI read the real error and fix one thing at a time
- No install, no accounts, no API keys: plain Node.js files (Node 18+), output git-ignored automatically
Free sample: Fix page: works locally, fails on Vercel
Copy it right here, or download the whole kit above. This is the actual text from the kit.
# Works locally, fails on Vercel
**First:** copy the build log from Vercel (Deployment → Build Logs → copy) into a file and run `node unstuck/capture.mjs --file vercel-log.txt`. It drops Vercel's wrapper lines and finds the real error underneath. Then run `node unstuck/doctor.mjs` locally: it checks the things that differ between your laptop and Vercel.
The usual causes, most common first:
1. **Letter case in an import** works on Mac/Windows, fails on Linux → [import-case](build-errors.md#import-case). doctor catches it locally.
2. **Env vars missing on Vercel** → [supabase-env-missing](env-vars.md#supabase-env-missing), [env-missing](env-vars.md#env-missing), then [vercel-env-not-applied](#vercel-env-not-applied).
3. **Lockfile out of sync** (pnpm installs with `--frozen-lockfile` in CI) → [lockfile-out-of-sync](install-and-node.md#lockfile-out-of-sync).
4. **A file that was never committed** (works locally because it's on your disk) → check `git status`. doctor's repro bundle includes it.
5. **Node version** → below.
<a id="vercel-node-version"></a>
## vercel-node-version: Vercel can't use your `engines.node`
Vercel builds with Node **22.x, 24.x or 26.x** (26 is the default for new projects; checked 2026-11-27, this list changes over time). If `package.json` has `"engines": { "node": ... }`, Vercel uses that instead of the version in Project Settings. doctor reports a FAIL when your `engines.node` allows none of those majors.
**Fix:** set `"engines": { "node": "24.x" }` (or `22.x`) in package.json, or remove the field and pick the version in Project Settings → Build and Deployment → Node.js Version. Make sure your local `node -v` uses the same major.
<a id="vercel-command-failed"></a>
## vercel-command-failed: `Command "npm run build" exited with 1`
That's just Vercel saying your build failed. The real error is **above** this line in the log. capture.mjs puts it first. If it only finds this line, the log you pasted was cut off: copy the full build log.
<a id="vercel-output-dir"></a>
## vercel-output-dir: Vercel can't find the build output
e.g. `No Output Directory named "dist" found after the Build completed`. Usually the Framework Preset or Output Directory setting is wrong (a Vite app set to "Other", or an output directory overridden by hand), or the Root Directory is wrong (your app is in a subfolder). **Fix:** Project Settings → Build and Deployment: set the Framework Preset (Next.js / Vite), clear the Output Directory override, and set Root Directory to the folder with `package.json`. *(From Vercel docs. The log wording is from common Vercel logs, not confirmed on a live deployment.)*
<a id="vercel-env-not-applied"></a>
## vercel-env-not-applied: I changed env vars on Vercel and nothing changed
Vercel docs: changes to environment variables apply only to **new** deployments. Redeploy (Deployments → ⋯ → Redeploy). Also check the variable is set for the right environment (Production vs Preview vs Development). `NEXT_PUBLIC_` / `VITE_` values are copied into the JavaScript at build time, so they always need a rebuild.
Need to go back to the last working deployment while you fix it? That's "Instant Rollback", covered in the Git Undo Button kit's Vercel playbook.
Questions about this kit
Is the Vibe Coding Unstuck Kit free?
Yes. It's a free .zip download ($0) with no account and no email required. Bot Pantry is paid for by clearly labeled sponsors, not by selling kits.
Who is this kit for?
Beginners and vibe coders building Next.js or Vite apps with Supabase and Vercel using AI tools, who are stuck on an install, build, dev-server, env var or deploy error and want the real cause instead of another round of AI guesses.
Which tools does it work with?
It's written for: Node.js; Next.js; Vite; Supabase; Vercel; npm / pnpm; Cursor; Claude Code; Lovable; v0; Bolt; Replit; ChatGPT, Claude, or Grok. The kit is a .zip of files (prompts, templates, guides and checklists) that you use with those tools. Bot Pantry has no app or account to sign up for.
How long does setup take?
About 10-20 min. That setup time was checked when the kit was reviewed before publishing.
How do I start?
Download the .zip, unzip it and open README.md first. It explains what each file is for and walks you through setup (about 10-20 min). The free sample above is a real file from the kit.
Will the AI act on its own?
No. Like every Bot Pantry kit, it is set up so the AI drafts or suggests and you decide. It should not send, post, delete or spend anything on its own.
More free kits for vibe coders
Free AI agent kits for vibe coders · Browse the full kit library
Where this kit fits: Vibe coding launch checklist: 4 free kits, in order