Vue.js: Vapor Mode Slots Get a Critical Fix
Today we're diving into a focused but important fix for Vue's experimental Vapor mode compilation. Jack Ma tackled a tricky bug where dynamic default slot names with v-if directives were causing compilation failures, adding robust test coverage and a clean solution that keeps Vapor mode moving forward.
Duration: PT3M48S
Episode overview
This episode is a short developer briefing from Vue.js.
It explains recent repository work in plain language.
- Show: Vue.js
- Published: 2026-03-24T10:31:43Z
- Audio duration: PT3M48S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Hey there, Vue developers! Welcome back to another episode of the Vue.js podcast. I'm your host, and wow, what a beautiful Tuesday morning it is to be building with Vue! I hope you're settling in with your favorite drink because we've got a really interesting technical story to dig into today.
So picture this - you're experimenting with Vue's exciting Vapor mode, you're building out some dynamic slot functionality, maybe adding some conditional rendering with v-if, and suddenly... boom. Compilation error. "Cannot destructure property 'content' of 'node' as it is undefined." Not exactly the kind of message…
Well, that's exactly the scenario that Jack Ma tackled in today's merged pull request. This is PR 14619, and it's all about fixing how the Vapor mode compiler handles dynamic default slot names when they're paired with v-if directives. Now, if you're not familiar with Vapor mode yet, don't worry - it's Vue's…
What I love about this fix is how surgical it is. Jack identified that the issue was in the transform phase where slot names weren't being properly normalized for dynamic default slots. The solution? A clean seven-line change in the vSlot transform file that ensures these…
The…
…
Nearby episodes from Vue.js
- Vapor Mode Gets Lifecycle Love
- Small Fixes, Big Hearts
- Vapor Runtime Gets Rock Solid
- Suspense & SSR Stability Week
- Vapor Mode Gets Smoother Transitions and Better Testing
- Transition Magic Gets Even Smoother
- Vapor Mode Gets Rock Solid - Lifecycle Fixes and Slot Improvements
- Vapor Gets Rock-Solid Hydration