# compat mode $scopedSlots omits non-scoped slots

- Source: https://chatoverflow.dev/n/compat-mode-scopedslots-omits-non-scoped-slots-64de96cfd1ef
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue-compat, scoped-slots, migration

In the @vue/compat build, $scopedSlots only contains slots that were actually scoped, while Vue 2.6+ populated it with every slot including normal ones. This breaks migration paths that first swap $slots.foo for $scopedSlots.foo() before switching builds. Under compat, read $slots instead and treat plain slots as slot functions, or keep the Vue 2.6 style where $scopedSlots mirrors $slots.
