webflow/webflow-skills

webflow-code-component:troubleshoot-deploy

Debug deployment failures for Webflow Code Components.

Voir la source
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Troubleshoot Deploy

Debug and fix deployment issues for Webflow Code Components.

When to Use This Skill

Use when:

  • webflow library share failed with an error
  • Components deployed but aren't working correctly
  • User shares an error message from deployment
  • Bundle or compilation errors occurred

Do NOT use when:

  • Deployment hasn't been attempted yet (use deploy-guide instead)
  • Validating before deployment (use pre-deploy-check instead)
  • General code quality issues (use component-audit instead)

Instructions

Phase 1: Gather Information

  1. Get error details:
  • Ask for exact error message
  • Request output from npx webflow library share
  • Check if npx webflow library log has additional info
  1. Understand context:
  • First deploy or update?
  • Recent changes made?
  • Working previously?

Phase 2: Diagnose

  1. Identify error category:
  • Authentication errors
  • Build/compilation errors
  • Bundle size errors
  • Network/upload errors
  • Configuration errors
  1. Analyze root cause:
  • Parse error message
  • Check common causes
  • Identify specific issue

Phase 3: Provide Solution

  1. Give specific fix:
  • Step-by-step resolution
  • Code examples if needed
  • Verification steps
  1. Prevent recurrence:
  • Explain why it happened
  • Suggest preventive measures

Common Error Reference

For detailed solutions to each error, see references/ERROR_CATALOG.md.

Quick Reference

ErrorCategoryQuick Fix
"Authentication failed"AuthRegenerate API token in Workspace Settings
"Insufficient permissions"AuthCheck workspace role and token
"Module not found"Buildnpm install --save-dev @webflow/react
"TypeScript errors"BuildRun npx tsc --noEmit to find error
"Unexpected token"BuildCheck file extension is .tsx
"Bundle size exceeds limit"BundleTree-shake imports, lazy load heavy components
"Component not rendering"RuntimeCheck SSR issues, browser console
"Styles not appearing"RuntimeImport CSS in .webflow.tsx file
"webflow.json not found"ConfigCreate webflow.json in project root
"No components found"ConfigCheck glob pattern and file extension
"Invalid JSON in webflow.json"ConfigFix JSON syntax (trailing commas, comments)
"429 Too Many Requests"NetworkWait 60 seconds and retry
"Request timed out"NetworkCheck connectivity, proxy, Webflow status
"JavaScript heap out of memory"MemoryNODE_OPTIONS="--max-old-space-size=4096"
"Circular dependency"BuildExtract shared code, break import cycles

Most Common Fixes

Authentication:

bash
# Regenerate token, then:
export WEBFLOW_WORKSPACE_API_TOKEN=your-new-token
npx webflow library share

Missing Dependencies:

bash
npm install --save-dev @webflow/webflow-cli @webflow/data-types @webflow/react

SSR Issues:

typescript
// Wrap browser APIs in useEffect or disable SSR:
declareComponent(Component, { options: { ssr: false } });

Missing Styles:

typescript
// In .webflow.tsx, import styles:
import "./Component.module.css";

Debugging Commands

bash
# Check recent deploy logs
npx webflow library log

# Verbose deploy output (shows detailed errors)
npx webflow library share --verbose

# Type check without deploying
npx tsc --noEmit

Validation

The issue is resolved when all of the following are true:

Success CriteriaHow to Verify
Deploy completes without errorsnpx webflow library share exits cleanly
Components appear in DesignerOpen Add panel in Designer and find your library
Import logs confirm successnpx webflow library log shows successful import

Guidelines

Error Analysis Process

  1. Read the full error message - Often contains the solution
  2. Check the error category - Auth, build, bundle, or runtime
  3. Look for file paths - Points to exact location
  4. Check line numbers - For code errors
  5. Search error message - May be a known issue

When to Escalate

If none of the solutions work, gather this data before escalating:

  1. Deploy logs: npx webflow library log
  2. Verbose output: npx webflow library share --verbose
  3. Node.js version: node -v
  4. Package versions: npm list @webflow/webflow-cli @webflow/data-types @webflow/react
  5. Configuration: Contents of webflow.json
  6. Error message: Full error output (not just the summary line)

Then:

  • Check Webflow status page for outages
  • Search the Webflow Community Forum for your error message
  • Contact Webflow Support with the collected data above
du même dépôt

Autres Skills

Tous les Skills
webflow
Officiel

webflow-cli:cloud

Create, build, and deploy Webflow Cloud apps from the CLI (site-attached or project apps), and manage existing ones — apps, domains, environments, deployments, build/runtime logs, and environment variables including secrets. Use when initializing or deploying a Cloud app, importing an existing GitHub repository, setting up CI/CD (GitHub Actions or GitHub-linked deploys), setting or importing secrets, retrying or rolling back a deployment, diagnosing a failed build, or resolving app/environment/workspace IDs from webflow.json or env vars. The webflow apps namespace is beta and requires the CLI's @next channel.

installations
1
GitHub Stars
120
Mis à jour
2 sept.
webflow
Officiel

webflow-mcp:asset-audit

Analyze assets on a Webflow site for SEO optimization. Identifies assets missing alt text and assets with non-SEO-friendly names, then generates and applies improvements.

installations
1
GitHub Stars
120
Mis à jour
2 sept.
webflow
Officiel

webflow-mcp:figma-to-webflow

- Build a Webflow page, section, component, or full site from a Figma design using the Figma MCP and the Webflow MCP (Designer Bridge + Data API). Use whenever translating a Figma file/frame into Webflow, building directly in a Webflow project, or implementing a design as live Webflow elements/styles (not a copy-paste fragment). Triggers: "build this Figma in Webflow", "Figma to Webflow", "implement this design in Webflow", a figma.com URL + a Webflow site, "recreate this in my Webflow project".

installations
1
GitHub Stars
120
Mis à jour
2 sept.
webflow
Officiel

webflow-mcp:review-comments

Review open comment threads on a Webflow site and triage each one.

installations
1
GitHub Stars
120
Mis à jour
2 sept.