vue-debug-guides
vuejs-ai/skills
Диагностируйте и устраняйте ошибки выполнения, предупреждения, сбои асинхронных операций и проблемы с SSR/гидратацией в Vue 3 с помощью целевых руководств по отладке.
...Расширить всеОтладка и обработка ошибок в Vue 3 при возникновении проблем во время выполнения, предупреждений, сбоев асинхронных операций и ошибок гидратации.
Рекомендации по разработке и типичные подводные камни см. в vue-best-practices.
Реактивность
- Отслеживание неожиданных перерисовок и обновлений состояния → См. reactivity-debugging-hooks
- Значения ref не обновляются из-за отсутствия доступа к .value → См. ref-value-access
- Состояние перестаёт обновляться после деструктурирования реактивных объектов → См. reactive-destructuring
- Ref внутри массивов, карт или наборов не распаковываются → См. refs-in-collections-need-value
- Вложенные ref отображаются в шаблонах как [object Object] → См. template-ref-unwrapping-top-level
- Сравнения идентичности реактивных прокси всегда возвращают false → См. reactivity-proxy-identity-hazard
- Сбои в работе сторонних экземпляров при использовании прокси → См. reactivity-markraw-for-non-reactive
- Наблюдатели неожиданно срабатывают только один раз за такт → См. reactivity-same-tick-batching
Вычисляемые
- Вычисляемый геттер неожиданно вызывает мутации или запросы → См. computed-no-side-effects
- Изменение вычисляемых значений приводит к исчезновению изменений → См. computed-return-value-readonly
- Вычисляемое значение никогда не обновляется после условной логики → См. computed-conditional-dependencies
- Сортировка или реверсирование массивов нарушает исходное состояние → См. computed-array-mutation
- Передача параметров вычисляемым свойствам завершается сбоем → См. computed-no-parameters
Наблюдатели
- Асинхронные операции перезаписывают данные устаревшими значениями → См. watch-async-cleanup
- Создание наблюдателей внутри асинхронных обратных вызовов → См. watch-async-creation-memory-leak
- Наблюдатель никогда не срабатывает для свойств реактивных объектов → См. watch-reactive-property-getter
- Асинхронный watchEffect пропускает зависимости после await → См. watcheffect-async-dependency-tracking
- Чтение DOM в обратных вызовах наблюдателя использует устаревшие данные → См. watch-flush-timing
- Глубокие наблюдатели возвращают идентичные старые и новые значения → См. watch-deep-same-object-reference
- watchEffect запускается до обновления референций шаблона → См. watcheffect-flush-post-for-refs
Компоненты
- Дочерний компонент выдает ошибку «компонент не найден» → См. local-components-not-in-descendants
- Слушатель кликов не срабатывает на пользовательском компоненте → См. click-events-on-components
- Родительский компонент не может получить доступ к данным референции дочернего компонента в скрипте setup → См. component-ref-requires-defineexpose
- Разбор HTML-шаблонов нарушает синтаксис компонентов Vue → См. in-dom-template-parsing-caveats
- Из-за конфликтов имен рендерится не тот компонент → См. component-naming-conflicts
- Стили родительского компонента не применяются к компоненту с несколькими корнями → См. multi-root-component-class-attrs
Props и Emits
- Переменные, на которые есть ссылки в `defineProps`, вызывают ошибки → См. prop-defineprops-scope-limitation
- Компонент генерирует не объявленное событие, что приводит к предупреждениям → См. declare-emits-for-documentation
- defineEmits используется внутри функции или условия → См. defineEmits-must-be-top-level
- У defineEmits есть как аргументы типа, так и аргументы времени выполнения → См. defineEmits-no-runtime-and-type-mixed
- Нативные слушатели событий не реагируют на клики → См. native-event-collision-with-emits
- Событие компонента срабатывает дважды при нажатии → См. undeclared-emits-double-firing
Шаблоны
- Получаются ошибки компиляции шаблонов с операторами → См. template-expressions-restrictions
- Ошибки выполнения «Cannot read property of undefined» → См. v-if-null-check-order
- Динамические аргументы директив работают некорректно → См. dynamic-argument-constraints
- Элементы v-else всегда отображаются безоговорочно → См. v-else-must-follow-v-if
- Смешивание v-if с v-for приводит к ошибкам приоритета и сбоям при миграции → См. no-v-if-with-v-for
- Вызовы шаблонных функций, изменяющие состояние, приводят к непредсказуемым ошибкам при повторном рендеринге → См. template-functions-no-side-effects
- Дочерние компоненты в циклах отображают неопределённые данные → См. v-for-component-props
- Изменение порядка массива после сортировки или реверсирования → См. v-for-computed-reverse-sort
- Элементы списка неожиданно исчезают или меняют состояние → См. v-for-key-attribute
- Ошибки «off-by-one» при итерации по диапазону → См. v-for-range-starts-at-one
- v-show или v-else не работают на элементах шаблона → См. v-show-template-limitation
Ссылки на шаблоны
- Ссылка становится null, когда элемент условно скрыт → См. template-ref-null-with-v-if
- Индексы массива ref не совпадают с массивом данных в циклах → См. template-ref-v-for-order
- Рефакторинг имён ссылок на шаблоны приводит к незаметным сбоям в коде → См. use-template-ref-vue35
Формы и v-model
- Начальные значения форм не отображаются при использовании v-model → См. v-model-ignores-html-attributes
- Изменения содержимого textarea не обновляют ref → См. textarea-no-interpolation
- Пользователи iOS не могут выбрать первый вариант в выпадающем списке → См. select-initial-value-ios-bug
- Родительский и дочерний компоненты имеют разные значения → См. define-model-default-value-sync
- Изменения свойств объекта не синхронизируются с родительским компонентом → См. definemodel-object-mutation-no-emit
- Поиск и проверка в реальном времени не работают при вводе на китайском и японском языках → См. v-model-ime-composition
- При вводе чисел возвращается пустая строка вместо нуля → См. v-model-number-modifier-behavior
- Значения пользовательских флажков не отправляются в формах → См. checkbox-true-false-value-form-submission
События и модификаторы
- Цепочка нескольких модификаторов событий приводит к неожиданным результатам → См. event-modifier-order-matters
- Горячие клавиши не срабатывают с системными модификаторами → См. keyup-modifier-timing
- Горячие клавиши срабатывают с непреднамеренными комбинациями модификаторов → См. exact-modifier-for-precise-shortcuts
- Сочетание модификаторов «passive» и «prevent» нарушает поведение событий → См. no-passive-with-prevent
Жизненный цикл
- Утечки памяти из-за неудалённых слушателей событий → См. cleanup-side-effects
- Ошибка доступа к DOM до присоединения компонента → См. lifecycle-dom-access-timing
- Чтение DOM возвращает устаревшие значения после изменений состояния → См. «dom-update-timing-nexttick»
- Рендеринг SSR отличается от гидратации на стороне клиента → См. lifecycle-ssr-awareness
- Асинхронно зарегистрированные хуки жизненного цикла никогда не запускаются → См. lifecycle-hooks-synchronous-registration
Слоты
- Доступ к данным дочернего компонента в содержимом слота возвращает значения undefined → См. slot-render-scope-parent-only
- Смешивание именованных и ограниченных областью действия слотов приводит к ошибкам компиляции → См. slot-named-scoped-explicit-default
- Использование v-slot на нативных HTML-элементах приводит к ошибкам компиляции → См. slot-v-slot-on-components-or-templates-only
- Неожиданное размещение содержимого из-за неявного поведения слота по умолчанию → См. slot-implicit-default-content
- В свойствах слотов с областью действия отсутствует ожидаемое свойство name → См. slot-name-reserved-prop
- Оболочковые компоненты нарушают работу дочерних слотов → См. slot-forwarding-to-child-components
Provide/Inject
- Вызов `provide` после асинхронных операций завершается без ошибок → См. provide-inject-synchronous-setup
- Отслеживание источника предоставляемых значений → См. provide-inject-debugging-challenges
- Внедренные значения не обновляются при изменении провайдера → См. provide-inject-reactivity-not-automatic
- Несколько компонентов используют один и тот же объект по умолчанию → См. provide-inject-default-value-factory
Attrs
- Выполняются как внутренние обработчики событий, так и обработчики, вызванные по принципу «fallthrough» → См. attrs-event-listener-merging
- Явные атрибуты перезаписываются значениями, передаваемыми по цепочке → См. fallthrough-attrs-overwrite-vue3
- Атрибуты применяются к неверному элементу в оберточных компонентах → См. inheritattrs-false-for-wrapper-components
Композитабельные компоненты
- Композибл, вызванный вне контекста setup или асинхронно → См. composable-call-location-restrictions
- Реактивная зависимость композибле не обновляется при изменении входных данных → См. composable-tovalue-inside-watcheffect
- Композитабельный неожиданно изменяет внешнее состояние → См. composable-avoid-hidden-side-effects
- Деструктурирование возвращаемого значения композибельного элемента неожиданно нарушает реактивность → См. composable-naming-return-pattern
API композиции
- Скрипты жизненного цикла завершаются без ошибок после асинхронных операций → См. composition-api-script-setup-async-context
- Ссылки родительского компонента не могут получить доступ к экспонированным свойствам → См. define-expose-before-await
- Шаблоны функционального программирования нарушают ожидаемое поведение реактивности Vue → См. composition-api-not-functional-programming
- Ментальная модель React Hooks приводит к некорректному использованию Composition API → См. composition-api-vs-react-hooks-differences
Анимация
- Анимации не запускаются при повторном использовании узлов DOM → См. animation-key-for-rerender
- Обновление списка TransitionGroup замедляется при высокой нагрузке → См. animation-transitiongroup-performance
TypeScript
- Изменяемые значения по умолчанию для проп приводят к утечке состояния между экземплярами компонентов → См. ts-withdefaults-mutable-factory-function
- Генерический тип reactive() приводит к несоответствиям при развертывании референций → См. ts-reactive-no-generic-argument
- Шаблонные ref вызывают ошибки доступа к null до монтирования или после демонтирования с помощью v-if → См. ts-template-ref-null-handling
- Необязательные булевые пропсы по умолчанию принимают значение false вместо undefined → См. ts-defineprops-boolean-default-false
- Импортированные типы defineProps дают сбой при наличии неразрешаемых или сложных ссылок на типы → См. ts-defineprops-imported-types-limitations
- Обработчики событий DOM без типов вызывают ошибку при строгих настройках TypeScript → См. ts-event-handler-explicit-typing
- Динамические ссылки на компоненты вызывают предупреждения о реактивных компонентах → См. ts-shallowref-for-dynamic-components
- Выражения шаблонов с объединенным типом не проходят проверку типов без сужения → См. ts-template-type-casting
Асинхронные компоненты
- Неправильная настройка компонентов маршрутизации с отложенной загрузкой defineAsyncComponent → См. async-component-vue-router
- Сбои сетевого соединения или таймауты при загрузке компонентов → См. async-component-error-handling
- Ссылки на шаблоны остаются не определёнными после повторной активации компонента → См. async-component-keepalive-ref-issue
Функции рендеринга
- Результат функции рендеринга остаётся неизменным после изменения состояния → См. rendering-render-function-return-from-setup
- Неправильное рендерирование повторно используемых экземпляров vnode → См. render-function-vnodes-must-be-unique
- Строковые имена компонентов отображаются как HTML-элементы → См. rendering-resolve-component-for-string-names
- Доступ к внутренним данным vnode приводит к сбоям при обновлениях Vue → См. render-function-avoid-internal-vnode-properties
- Шаблоны функций рендеринга Vue 2 приводят к сбоям в Vue 3 → См. rendering-render-function-h-import-vue3
- Содержимое слотов не отображается из h() → См. rendering-render-function-slots-as-functions
KeepAlive
- Дочерние компоненты монтируются дважды при вложенных маршрутах Vue Router → См. keepalive-router-nested-double-mount
- Увеличение объёма памяти при сочетании KeepAlive с анимациями переходов → См. keepalive-transition-memory-leak
Переходы
- Хуки переходов на JavaScript зависают без обратного вызова done → См. transition-js-hooks-done-callback
- Анимации перемещения не работают для встроенных элементов списка → См. transition-group-flip-inline-elements
- Элементы списка «подскакивают», вместо того чтобы плавно анимироваться → См. transition-group-move-animation-position-absolute
- Изменения в обертке TransitionGroup при переходе с Vue 2 на Vue 3 нарушают верстку → См. transition-group-no-default-wrapper-vue3
- Вложенные переходы обрываются до завершения → См. transition-nested-duration
- Стили с ограниченной областью действия перестают работать в многоразовых обёртках переходов → См. transition-reusable-scoped-style
- Анимации RouterView неожиданно запускаются при первом рендеринге → См. transition-router-view-appear
- Смешивание CSS-переходов и анимаций вызывает проблемы с синхронизацией → См. transition-type-when-mixed
- Пропускаются хуки очистки при быстрой смене переходов → См. transition-unmount-hook-timing
Телепортация
- Целевой элемент телепортации не найден в DOM → См. teleport-target-must-exist
- Телепортированный контент нарушает гидрацию SSR → См. teleport-ssr-hydration
- Стили с ограниченной областью действия не применяются к телепортированному контенту → См. teleport-scoped-styles-limitation
Suspense
- Необходимо обрабатывать асинхронные ошибки из компонентов Suspense → См. suspense-no-builtin-error-handling
- Использование Suspense при серверном рендеринге → См. suspense-ssr-hydration-issues
- Пользовательский интерфейс асинхронной загрузки компонентов и отображения ошибок игнорируется при использовании Suspense → См. async-component-suspense-control
SSR
- Различия в HTML-коде при серверном и клиентском рендеринге → См. ssr-hydration-mismatch-causes
- Утечка состояния пользователя между запросами из общих хранилищ синглатонов → См. state-ssr-cross-request-pollution
- API, доступные только в браузере, приводят к сбою серверного рендеринга в универсальных кодовых путях → См. ssr-platform-specific-apis
Производительность
- Дочерние элементы списка перерисовываются без необходимости, поскольку родительский элемент передаёт нестабильные props → См. perf-props-stability-update-optimization
- Вычисляемые объекты повторно запускают эффекты, несмотря на эквивалентные значения → См. perf-computed-object-stability
SFC (однофайловые компоненты)
- Попытка использовать именованные экспорты из блоков скриптов компонентов → См. sfc-named-exports-forbidden
- Переменные не обновляются в шаблоне после изменений → См. sfc-script-setup-reactivity
- Стили с ограниченной областью действия не применяются к элементам дочерних компонентов → См. sfc-scoped-css-child-component-styling
- Стили с ограниченной областью действия не применяются к динамическому содержимому v-html → См. sfc-scoped-css-dynamic-content
- Стили с ограниченной областью действия не применяются к содержимому слотов → См. sfc-scoped-css-slot-content
- Отсутствуют классы Tailwind при динамической генерации → См. tailwind-dynamic-class-generation
- Рекурсивные компоненты не отображаются из-за конфликтов имён → См. self-referencing-component-name
Плагины
- Отладка причин, по которым глобальные свойства вызывают конфликты имен → См. plugin-global-properties-sparingly
- Плагин не работает или inject возвращает undefined → См. plugin-install-before-mount
- Глобальные свойства плагинов недоступны в компонентах, использующих настройки → См. plugin-prefer-provide-inject-over-global-properties
- Ошибки расширения типов плагинов нарушают типизацию ComponentCustomProperties → См. plugin-typescript-type-augmentation
Конфигурация приложения
- Методы настройки приложения не работают после вызова `mount()` → См. configure-app-before-mount
- Цепочка настроек приложения после вызова `mount()` завершается сбоем, поскольку `mount` возвращает экземпляр компонента → См. mount-return-value
- Автоматическая регистрация компонентов на основе require.context не работает в Vite → См. dynamic-component-registration-vite
---
name: vue-debug-guides
description: Diagnose and fix Vue 3 runtime errors, warnings, async failures, and SSR/hydration issues with targeted debugging guides.
---
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
- Tracing unexpected re-renders and state updates → See [reactivity-debugging-hooks](reference/reactivity-debugging-hooks.md)
- Ref values not updating due to missing .value access → See [ref-value-access](reference/ref-value-access.md)
- State stops updating after destructuring reactive objects → See [reactive-destructuring](reference/reactive-destructuring.md)
- Refs inside arrays, Maps, or Sets not unwrapping → See [refs-in-collections-need-value](reference/refs-in-collections-need-value.md)
- Nested refs rendering as [object Object] in templates → See [template-ref-unwrapping-top-level](reference/template-ref-unwrapping-top-level.md)
- Reactive proxy identity comparisons always return false → See [reactivity-proxy-identity-hazard](reference/reactivity-proxy-identity-hazard.md)
- Third-party instances breaking when proxied → See [reactivity-markraw-for-non-reactive](reference/reactivity-markraw-for-non-reactive.md)
- Watchers only firing once per tick unexpectedly → See [reactivity-same-tick-batching](reference/reactivity-same-tick-batching.md)
### Computed
- Computed getter triggers mutations or requests unexpectedly → See [computed-no-side-effects](reference/computed-no-side-effects.md)
- Mutating computed values causes changes to disappear → See [computed-return-value-readonly](reference/computed-return-value-readonly.md)
- Computed value never updates after conditional logic → See [computed-conditional-dependencies](reference/computed-conditional-dependencies.md)
- Sorting or reversing arrays breaks original state → See [computed-array-mutation](reference/computed-array-mutation.md)
- Passing parameters to computed properties fails → See [computed-no-parameters](reference/computed-no-parameters.md)
### Watchers
- Async operations overwriting with stale data → See [watch-async-cleanup](reference/watch-async-cleanup.md)
- Creating watchers inside async callbacks → See [watch-async-creation-memory-leak](reference/watch-async-creation-memory-leak.md)
- Watcher never triggers for reactive object properties → See [watch-reactive-property-getter](reference/watch-reactive-property-getter.md)
- Async watchEffect misses dependencies after await → See [watcheffect-async-dependency-tracking](reference/watcheffect-async-dependency-tracking.md)
- DOM reads are stale inside watcher callbacks → See [watch-flush-timing](reference/watch-flush-timing.md)
- Deep watchers report identical old/new values → See [watch-deep-same-object-reference](reference/watch-deep-same-object-reference.md)
- watchEffect runs before template refs update → See [watcheffect-flush-post-for-refs](reference/watcheffect-flush-post-for-refs.md)
### Components
- Child component throws "component not found" error → See [local-components-not-in-descendants](reference/local-components-not-in-descendants.md)
- Click listener doesn't fire on custom component → See [click-events-on-components](reference/click-events-on-components.md)
- Parent can't access child ref data in script setup → See [component-ref-requires-defineexpose](reference/component-ref-requires-defineexpose.md)
- HTML template parsing breaks Vue component syntax → See [in-dom-template-parsing-caveats](reference/in-dom-template-parsing-caveats.md)
- Wrong component renders due to naming collisions → See [component-naming-conflicts](reference/component-naming-conflicts.md)
- Parent styles don't apply to multi-root component → See [multi-root-component-class-attrs](reference/multi-root-component-class-attrs.md)
### Props & Emits
- Variables referenced in defineProps cause errors → See [prop-defineprops-scope-limitation](reference/prop-defineprops-scope-limitation.md)
- Component emits undeclared event causing warnings → See [declare-emits-for-documentation](reference/declare-emits-for-documentation.md)
- defineEmits used inside function or conditional → See [defineEmits-must-be-top-level](reference/defineEmits-must-be-top-level.md)
- defineEmits has both type and runtime arguments → See [defineEmits-no-runtime-and-type-mixed](reference/defineEmits-no-runtime-and-type-mixed.md)
- Native event listeners not responding to clicks → See [native-event-collision-with-emits](reference/native-event-collision-with-emits.md)
- Component event fires twice when clicking → See [undeclared-emits-double-firing](reference/undeclared-emits-double-firing.md)
### Templates
- Getting template compilation errors with statements → See [template-expressions-restrictions](reference/template-expressions-restrictions.md)
- "Cannot read property of undefined" runtime errors → See [v-if-null-check-order](reference/v-if-null-check-order.md)
- Dynamic directive arguments not working properly → See [dynamic-argument-constraints](reference/dynamic-argument-constraints.md)
- v-else elements rendering unconditionally always → See [v-else-must-follow-v-if](reference/v-else-must-follow-v-if.md)
- Mixing v-if with v-for causes precedence bugs and migration breakage → See [no-v-if-with-v-for](reference/no-v-if-with-v-for.md)
- Template function calls mutating state cause unpredictable re-render bugs → See [template-functions-no-side-effects](reference/template-functions-no-side-effects.md)
- Child components in loops showing undefined data → See [v-for-component-props](reference/v-for-component-props.md)
- Array order changing after sorting or reversing → See [v-for-computed-reverse-sort](reference/v-for-computed-reverse-sort.md)
- List items disappearing or swapping state unexpectedly → See [v-for-key-attribute](reference/v-for-key-attribute.md)
- Getting off-by-one errors with range iteration → See [v-for-range-starts-at-one](reference/v-for-range-starts-at-one.md)
- v-show or v-else not working on template elements → See [v-show-template-limitation](reference/v-show-template-limitation.md)
### Template Refs
- Ref becomes null when element is conditionally hidden → See [template-ref-null-with-v-if](reference/template-ref-null-with-v-if.md)
- Ref array indices don't match data array in loops → See [template-ref-v-for-order](reference/template-ref-v-for-order.md)
- Refactoring template ref names breaks silently in code → See [use-template-ref-vue35](reference/use-template-ref-vue35.md)
### Forms & v-model
- Initial form values not showing when using v-model → See [v-model-ignores-html-attributes](reference/v-model-ignores-html-attributes.md)
- Textarea content changes not updating the ref → See [textarea-no-interpolation](reference/textarea-no-interpolation.md)
- iOS users cannot select dropdown first option → See [select-initial-value-ios-bug](reference/select-initial-value-ios-bug.md)
- Parent and child components have different values → See [define-model-default-value-sync](reference/define-model-default-value-sync.md)
- Object property changes not syncing to parent → See [definemodel-object-mutation-no-emit](reference/definemodel-object-mutation-no-emit.md)
- Real-time search/validation broken for Chinese/Japanese input → See [v-model-ime-composition](reference/v-model-ime-composition.md)
- Number input returns empty string instead of zero → See [v-model-number-modifier-behavior](reference/v-model-number-modifier-behavior.md)
- Custom checkbox values not submitted in forms → See [checkbox-true-false-value-form-submission](reference/checkbox-true-false-value-form-submission.md)
### Events & Modifiers
- Chaining multiple event modifiers produces unexpected results → See [event-modifier-order-matters](reference/event-modifier-order-matters.md)
- Keyboard shortcuts don't fire with system modifier keys → See [keyup-modifier-timing](reference/keyup-modifier-timing.md)
- Keyboard shortcuts fire with unintended modifier combinations → See [exact-modifier-for-precise-shortcuts](reference/exact-modifier-for-precise-shortcuts.md)
- Combining passive and prevent modifiers breaks event behavior → See [no-passive-with-prevent](reference/no-passive-with-prevent.md)
### Lifecycle
- Memory leaks from unremoved event listeners → See [cleanup-side-effects](reference/cleanup-side-effects.md)
- DOM access fails before component mounts → See [lifecycle-dom-access-timing](reference/lifecycle-dom-access-timing.md)
- DOM reads return stale values after state changes → See [dom-update-timing-nexttick](reference/dom-update-timing-nexttick.md)
- SSR rendering differs from client hydration → See [lifecycle-ssr-awareness](reference/lifecycle-ssr-awareness.md)
- Lifecycle hooks registered asynchronously never run → See [lifecycle-hooks-synchronous-registration](reference/lifecycle-hooks-synchronous-registration.md)
### Slots
- Accessing child component data in slot content returns undefined values → See [slot-render-scope-parent-only](reference/slot-render-scope-parent-only.md)
- Mixing named and scoped slots together causes compilation errors → See [slot-named-scoped-explicit-default](reference/slot-named-scoped-explicit-default.md)
- Using v-slot on native HTML elements causes compilation errors → See [slot-v-slot-on-components-or-templates-only](reference/slot-v-slot-on-components-or-templates-only.md)
- Unexpected content placement from implicit default slot behavior → See [slot-implicit-default-content](reference/slot-implicit-default-content.md)
- Scoped slot props missing expected name property → See [slot-name-reserved-prop](reference/slot-name-reserved-prop.md)
- Wrapper components breaking child slot functionality → See [slot-forwarding-to-child-components](reference/slot-forwarding-to-child-components.md)
### Provide/Inject
- Calling provide after async operations fails silently → See [provide-inject-synchronous-setup](reference/provide-inject-synchronous-setup.md)
- Tracing where provided values come from → See [provide-inject-debugging-challenges](reference/provide-inject-debugging-challenges.md)
- Injected values not updating when provider changes → See [provide-inject-reactivity-not-automatic](reference/provide-inject-reactivity-not-automatic.md)
- Multiple components share same default object → See [provide-inject-default-value-factory](reference/provide-inject-default-value-factory.md)
### Attrs
- Both internal and fallthrough event handlers execute → See [attrs-event-listener-merging](reference/attrs-event-listener-merging.md)
- Explicit attributes overwritten by fallthrough values → See [fallthrough-attrs-overwrite-vue3](reference/fallthrough-attrs-overwrite-vue3.md)
- Attributes applying to wrong element in wrappers → See [inheritattrs-false-for-wrapper-components](reference/inheritattrs-false-for-wrapper-components.md)
### Composables
- Composable called outside setup context or asynchronously → See [composable-call-location-restrictions](reference/composable-call-location-restrictions.md)
- Composable reactive dependency not updating when input changes → See [composable-tovalue-inside-watcheffect](reference/composable-tovalue-inside-watcheffect.md)
- Composable mutates external state unexpectedly → See [composable-avoid-hidden-side-effects](reference/composable-avoid-hidden-side-effects.md)
- Destructuring composable returns breaks reactivity unexpectedly → See [composable-naming-return-pattern](reference/composable-naming-return-pattern.md)
### Composition API
- Lifecycle hooks failing silently after async operations → See [composition-api-script-setup-async-context](reference/composition-api-script-setup-async-context.md)
- Parent component refs unable to access exposed properties → See [define-expose-before-await](reference/define-expose-before-await.md)
- Functional-programming patterns break expected Vue reactivity behavior → See [composition-api-not-functional-programming](reference/composition-api-not-functional-programming.md)
- React Hook mental model causes incorrect Composition API usage → See [composition-api-vs-react-hooks-differences](reference/composition-api-vs-react-hooks-differences.md)
### Animation
- Animations fail to trigger when DOM nodes are reused → See [animation-key-for-rerender](reference/animation-key-for-rerender.md)
- TransitionGroup list updates feel laggy under load → See [animation-transitiongroup-performance](reference/animation-transitiongroup-performance.md)
### TypeScript
- Mutable prop defaults leak state between component instances → See [ts-withdefaults-mutable-factory-function](reference/ts-withdefaults-mutable-factory-function.md)
- reactive() generic typing causes ref unwrapping mismatches → See [ts-reactive-no-generic-argument](reference/ts-reactive-no-generic-argument.md)
- Template refs throw null access errors before mount or after v-if unmount → See [ts-template-ref-null-handling](reference/ts-template-ref-null-handling.md)
- Optional boolean props behave as false instead of undefined → See [ts-defineprops-boolean-default-false](reference/ts-defineprops-boolean-default-false.md)
- Imported defineProps types fail with unresolvable or complex type references → See [ts-defineprops-imported-types-limitations](reference/ts-defineprops-imported-types-limitations.md)
- Untyped DOM event handlers fail under strict TypeScript settings → See [ts-event-handler-explicit-typing](reference/ts-event-handler-explicit-typing.md)
- Dynamic component refs trigger reactive component warnings → See [ts-shallowref-for-dynamic-components](reference/ts-shallowref-for-dynamic-components.md)
- Union-typed template expressions fail type checks without narrowing → See [ts-template-type-casting](reference/ts-template-type-casting.md)
### Async Components
- Route components misconfigured with defineAsyncComponent lazy loading → See [async-component-vue-router](reference/async-component-vue-router.md)
- Network failures or timeouts loading components → See [async-component-error-handling](reference/async-component-error-handling.md)
- Template refs undefined after component reactivation → See [async-component-keepalive-ref-issue](reference/async-component-keepalive-ref-issue.md)
### Render Functions
- Render function output stays static after state changes → See [rendering-render-function-return-from-setup](reference/rendering-render-function-return-from-setup.md)
- Reused vnode instances render incorrectly → See [render-function-vnodes-must-be-unique](reference/render-function-vnodes-must-be-unique.md)
- String component names render as HTML elements → See [rendering-resolve-component-for-string-names](reference/rendering-resolve-component-for-string-names.md)
- Accessing vnode internals breaks on Vue updates → See [render-function-avoid-internal-vnode-properties](reference/render-function-avoid-internal-vnode-properties.md)
- Vue 2 render function patterns crash in Vue 3 → See [rendering-render-function-h-import-vue3](reference/rendering-render-function-h-import-vue3.md)
- Slot content not rendering from h() → See [rendering-render-function-slots-as-functions](reference/rendering-render-function-slots-as-functions.md)
### KeepAlive
- Child components mount twice with nested Vue Router routes → See [keepalive-router-nested-double-mount](reference/keepalive-router-nested-double-mount.md)
- Memory grows when combining KeepAlive with Transition animations → See [keepalive-transition-memory-leak](reference/keepalive-transition-memory-leak.md)
### Transitions
- JavaScript transition hooks hang without done callback → See [transition-js-hooks-done-callback](reference/transition-js-hooks-done-callback.md)
- Move animations fail on inline list elements → See [transition-group-flip-inline-elements](reference/transition-group-flip-inline-elements.md)
- List items jump instead of smoothly animating → See [transition-group-move-animation-position-absolute](reference/transition-group-move-animation-position-absolute.md)
- Vue 2 to Vue 3 TransitionGroup wrapper changes break layout → See [transition-group-no-default-wrapper-vue3](reference/transition-group-no-default-wrapper-vue3.md)
- Nested transitions cut off before finishing → See [transition-nested-duration](reference/transition-nested-duration.md)
- Scoped styles stop working in reusable transition wrappers → See [transition-reusable-scoped-style](reference/transition-reusable-scoped-style.md)
- RouterView transitions animate unexpectedly on first render → See [transition-router-view-appear](reference/transition-router-view-appear.md)
- Mixing CSS transitions and animations causes timing issues → See [transition-type-when-mixed](reference/transition-type-when-mixed.md)
- Cleanup hooks missed during rapid transition swaps → See [transition-unmount-hook-timing](reference/transition-unmount-hook-timing.md)
### Teleport
- Teleport target element not found in DOM → See [teleport-target-must-exist](reference/teleport-target-must-exist.md)
- Teleported content breaks SSR hydration → See [teleport-ssr-hydration](reference/teleport-ssr-hydration.md)
- Scoped styles not applying to teleported content → See [teleport-scoped-styles-limitation](reference/teleport-scoped-styles-limitation.md)
### Suspense
- Need to handle async errors from Suspense components → See [suspense-no-builtin-error-handling](reference/suspense-no-builtin-error-handling.md)
- Using Suspense with server-side rendering → See [suspense-ssr-hydration-issues](reference/suspense-ssr-hydration-issues.md)
- Async component loading/error UI ignored under Suspense → See [async-component-suspense-control](reference/async-component-suspense-control.md)
### SSR
- HTML differs between server and client renders → See [ssr-hydration-mismatch-causes](reference/ssr-hydration-mismatch-causes.md)
- User state leaks between requests from shared singleton stores → See [state-ssr-cross-request-pollution](reference/state-ssr-cross-request-pollution.md)
- Browser-only APIs crash server rendering in universal code paths → See [ssr-platform-specific-apis](reference/ssr-platform-specific-apis.md)
### Performance
- List children re-render unnecessarily because parent passes unstable props → See [perf-props-stability-update-optimization](reference/perf-props-stability-update-optimization.md)
- Computed objects retrigger effects despite equivalent values → See [perf-computed-object-stability](reference/perf-computed-object-stability.md)
### SFC (Single File Components)
- Trying to use named exports from component script blocks → See [sfc-named-exports-forbidden](reference/sfc-named-exports-forbidden.md)
- Variables not updating in template after changes → See [sfc-script-setup-reactivity](reference/sfc-script-setup-reactivity.md)
- Scoped styles not applying to child component elements → See [sfc-scoped-css-child-component-styling](reference/sfc-scoped-css-child-component-styling.md)
- Scoped styles not applying to dynamic v-html content → See [sfc-scoped-css-dynamic-content](reference/sfc-scoped-css-dynamic-content.md)
- Scoped styles not applying to slot content → See [sfc-scoped-css-slot-content](reference/sfc-scoped-css-slot-content.md)
- Tailwind classes missing when built dynamically → See [tailwind-dynamic-class-generation](reference/tailwind-dynamic-class-generation.md)
- Recursive components not rendering due to name conflicts → See [self-referencing-component-name](reference/self-referencing-component-name.md)
### Plugins
- Debugging why global properties cause naming conflicts → See [plugin-global-properties-sparingly](reference/plugin-global-properties-sparingly.md)
- Plugin not working or inject returns undefined → See [plugin-install-before-mount](reference/plugin-install-before-mount.md)
- Plugin global properties are unavailable in setup-based components → See [plugin-prefer-provide-inject-over-global-properties](reference/plugin-prefer-provide-inject-over-global-properties.md)
- Plugin type augmentation mistakes break ComponentCustomProperties typing → See [plugin-typescript-type-augmentation](reference/plugin-typescript-type-augmentation.md)
### App Configuration
- App configuration methods not working after mount call → See [configure-app-before-mount](reference/configure-app-before-mount.md)
- Chaining app config off mount() fails because mount returns component instance → See [mount-return-value](reference/mount-return-value.md)
- require.context-based component auto-registration fails in Vite → See [dynamic-component-registration-vite](reference/dynamic-component-registration-vite.md)
Все файлы
140 файловУстановить vue-debug-guides
Скачайте файлы навыков и распакуйте их в каталог .claude/skills/.
Скачать ZIPКлонируйте репозиторий и скопируйте файлы навыка в свой проект.
git clone https://github.com/vuejs-ai/skills/tree/main/skills/vue-debug-guides # Copy SKILL.md to your .claude/skills/ directory
Копировать





Дом
