All skills
Skillintermediate

C3 Troubleshooting

**Error:** "Invalid namespace ID" **Fix:** Replace placeholders in wrangler.jsonc with real IDs: ```bash npx wrangler kv namespace create MY_KV # Get real ID ```

Claude Code Knowledge Pack7/10/2026

Overview

C3 Troubleshooting

Deployment Issues

Placeholder IDs

Error: "Invalid namespace ID"
Fix: Replace placeholders in wrangler.jsonc with real IDs:

npx wrangler kv namespace create MY_KV  # Get real ID

Authentication

Error: "Not authenticated"
Fix: npx wrangler login or set CLOUDFLARE_API_TOKEN

Name Conflict

Error: "Worker already exists"
Fix: Change name in wrangler.jsonc

Platform Selection

NeedPlatform
Git integration, branch previews--platform=pages
Durable Objects, D1, QueuesWorkers (default)

Wrong platform? Recreate with correct --platform flag.

TypeScript Issues

"Cannot find name 'KVNamespace'"

npm run cf-typegen  # Regenerate types
# Restart TS server in editor

Missing types after config change: Re-run npm run cf-typegen

Package Manager

Multiple lockfiles causing issues:

rm pnpm-lock.yaml  # If using npm
rm package-lock.json  # If using pnpm

CI/CD

CI hangs on prompts:

npm create cloudflare@latest my-app -- \\
  --type=hello-world --lang=ts --no-git --no-deploy

Auth in CI:

env:
  CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
  CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

Framework-Specific

FrameworkIssueFix
Next.jscreate-next-app failednpm cache clean --force, retry
AstroAdapter missingInstall @astrojs/cloudflare
RemixModule errorsUpdate @remix-run/cloudflare*

Compatibility Date

"Feature X requires compatibility_date >= ..."
Fix: Update compatibility_date in wrangler.jsonc to today's date

Node.js Version

"Node.js version not supported"
Fix: Install Node.js 18+ (nvm install 20)

Quick Reference

ErrorCauseFix
Invalid namespace IDPlaceholder bindingCreate resource, update config
Not authenticatedNo loginnpx wrangler login
Cannot find KVNamespaceMissing typesnpm run cf-typegen
Worker already existsName conflictChange name
CI hangsMissing flagsAdd --type, --lang, --no-deploy
Template not foundBad nameCheck cloudflare/templates