Get the FREE Ultimate OpenClaw Setup Guide →

vue-debug-guides

npx machina-cli add skill runkids/my-skills/vue-debug-guides --openclaw
Files (1)
SKILL.md
20.4 KB

Vue 3 debugging and error handling for runtime issues, warnings, async failures, and hydration bugs. For development best practices and common gotchas, use vue-best-practices.

Reactivity

Computed

Watchers

Components

Props & Emits

Templates

Template Refs

Forms & v-model

Events & Modifiers

Lifecycle

Slots

Provide/Inject

Attrs

Composables

Composition API

Animation

TypeScript

Async Components

Render Functions

KeepAlive

Transitions

Teleport

Suspense

SSR

Performance

SFC (Single File Components)

Plugins

App Configuration

Source

git clone https://github.com/runkids/my-skills/blob/main/frontend/vue/vue-debug-guides/SKILL.mdView on GitHub

Overview

Vue 3 debugging and error handling guide helps you diagnose runtime errors, warnings, async failures, and hydration bugs. It points to targeted references for reactivity, computed values, watchers, components, and props/emits, helping you fix issues faster.

How This Skill Works

The guide categorizes issues into Vue 3 areas (Reactivity, Computed, Watchers, Components, Props & Emits). You reproduce the bug, consult the relevant reference, apply fixes, and validate with a minimal repro to ensure regression-free results.

When to Use It

  • Diagnosing runtime errors, warnings, and async failures in Vue 3 apps (including hydration issues).
  • Tracing unexpected re-renders and stale state in reactivity.
  • Debugging computed side-effects, cache invalidation, and parameter handling.
  • Troubleshooting watcher and watchEffect timing, cleanup, and dependency tracking.
  • Resolving component, template parsing, props, and defineProps scope problems.

Quick Start

  1. Step 1: Reproduce the issue and collect console logs, warnings, and SSR messages.
  2. Step 2: Identify the relevant Vue 3 area (Reactivity, Computed, Watchers, Components, Props & Emits) and open the linked reference.
  3. Step 3: Apply the recommended fix and validate with a minimal repro before pushing changes.

Best Practices

  • Pinpoint topic area first and follow the linked reference docs (e.g., reactivity-debugging-hooks).
  • Verify ref values use .value in code and templates.
  • Reproduce issues in a minimal isolated example before deep fixes.
  • Inspect watch/watchEffect timing and cleanup and watch flush behavior.
  • Consult vue-best-practices for development patterns and gotchas.

Example Use Cases

  • Debugging a runtime error that surfaces after a user action and hydration mismatch during SSR.
  • Fixing a ref value not updating because .value wasn't accessed in template or script.
  • Resolving nested refs rendering as [object Object] in a template by unwrapping values.
  • Correcting a watcher that fires once per tick unexpectedly during a data migration.
  • Resolving a 'component not found' error due to wrong local component registration or import.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers