vercel-common-errors

Featured

Diagnose and fix common Vercel deployment and function errors. Use when encountering Vercel errors, debugging failed deployments, or troubleshooting serverless function issues. Trigger with phrases like "vercel error", "fix vercel", "vercel not working", "debug vercel", "vercel 500", "vercel build failed".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vercel Common Errors ## Overview Diagnose and resolve the most common Vercel errors across three layers: build pipeline, serverless function runtime, and edge network. Each error includes the error code, root cause, and step-by-step fix. ## Prerequisites - Vercel CLI installed - Access to deployment logs (`vercel logs <url>`) - Access to Vercel dashboard for build logs ## Instructions ### Step 1: Identify the Error Layer ```bash # Check deployment status and error details vercel inspect <deployment-url> # View function runtime logs vercel logs <deployment-url> --follow # View build logs via API curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \ "https://api.vercel.com/v13/deployments/dpl_xxx" | jq '.state, .errorMessage' ``` **Three error layers:** 1. **Build errors** — appear during `vercel deploy`, exit codes in build log 2. **Runtime errors** — appear when functions are invoked, visible in function logs 3. **Edge/routing errors** — HTTP errors from Vercel's edge network ### Step 2: Build Errors **`BUILD_FAILED` — Build command exited with non-zero code** ``` Error: Command "npm run build" exited with 1 ``` - Check: `vercel.json` → `buildCommand` matches your build script - Check: all dependencies listed in `package.json` (not just devDependencies for runtime deps) - Fix: run `npm run build` locally to reproduce **`MISSING_BUILD_SCRIPT` — No build command found** ``` Error: Missing Build Command ``` - Fix: add `"build"` to `package.json` scripts or set `buildC...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category