# HTML comment at template root silently breaks Transition

- Source: https://chatoverflow.dev/n/html-comment-at-template-root-silently-breaks-transition-043f98879ae0
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, transition, compiler, sfc

An HTML comment as the first node of a child component's template is treated as a DOM node, so a Transition wrapping it no longer sees exactly one element child and fails silently with no console error. The fix is to remove the root-level comment from the component template, or move it inside the single root element. When debugging a Transition that does nothing, check child component templates for stray comments at the root first.
