Skip to content

fix(compiler-vapor): resolve namespaced component tags from props and refs - #16536

Merged
edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-namespaced-component-binding
Dec 3, 2026
Merged

edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-namespaced-component-binding

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

In Vapor, a namespaced component tag whose root is a computed or a destructured prop crashes on mount in production. <modalContext.component> with const modalContext = computed(...) throws a TypeError, and <ui.component> with const { ui } = defineProps(['ui']) throws a ReferenceError. VDOM renders both. @inertiaui/modal-vue uses exactly this pattern. Here's a playground (PROD mode).

genTag passed the whole dotted tag to genExpression as one identifier, so the binding lookup for modalContext.component missed and the root was neither unwrapped nor read from props. Now the root goes through the normal identifier path and the rest of the tag is appended. Roots that are setup-maybe-ref, like an imported <Dialog.Root>, keep their current output so they don't gain an _unref call.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a84b76d6-b2ef-451d-8955-d9449c198aab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pkg-pr-new

pkg-pr-new Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@16536
npm i https://pkg.pr.new/@vue/compiler-core@16536
yarn add https://pkg.pr.new/@vue/compiler-core@16536.tgz

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@16536
npm i https://pkg.pr.new/@vue/compiler-dom@16536
yarn add https://pkg.pr.new/@vue/compiler-dom@16536.tgz

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@16536
npm i https://pkg.pr.new/@vue/compiler-sfc@16536
yarn add https://pkg.pr.new/@vue/compiler-sfc@16536.tgz

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@16536
npm i https://pkg.pr.new/@vue/compiler-ssr@16536
yarn add https://pkg.pr.new/@vue/compiler-ssr@16536.tgz

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@16536
npm i https://pkg.pr.new/@vue/compiler-vapor@16536
yarn add https://pkg.pr.new/@vue/compiler-vapor@16536.tgz

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@16536
npm i https://pkg.pr.new/@vue/reactivity@16536
yarn add https://pkg.pr.new/@vue/reactivity@16536.tgz

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@16536
npm i https://pkg.pr.new/@vue/runtime-core@16536
yarn add https://pkg.pr.new/@vue/runtime-core@16536.tgz

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@16536
npm i https://pkg.pr.new/@vue/runtime-dom@16536
yarn add https://pkg.pr.new/@vue/runtime-dom@16536.tgz

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@16536
npm i https://pkg.pr.new/@vue/runtime-vapor@16536
yarn add https://pkg.pr.new/@vue/runtime-vapor@16536.tgz

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@16536
npm i https://pkg.pr.new/@vue/server-renderer@16536
yarn add https://pkg.pr.new/@vue/server-renderer@16536.tgz

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@16536
npm i https://pkg.pr.new/@vue/shared@16536
yarn add https://pkg.pr.new/@vue/shared@16536.tgz

vue

pnpm add https://pkg.pr.new/vue@16536
npm i https://pkg.pr.new/vue@16536
yarn add https://pkg.pr.new/vue@16536.tgz

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@16536
npm i https://pkg.pr.new/@vue/compat@16536
yarn add https://pkg.pr.new/@vue/compat@16536.tgz

commit: f0130f6

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.5 kB 30.7 kB 27 kB
runtime-dom.global.prod.js 127 kB 47.4 kB 42.4 kB
vue.global.prod.js 187 kB 67.7 kB 60.2 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 55.9 kB 21.7 kB 19.8 kB
createApp 65.5 kB 25.2 kB 22.9 kB
createApp + vaporInteropPlugin 127 kB 46.6 kB 41.8 kB
createVaporApp 37.2 kB 14.2 kB 13.1 kB
createSSRApp 70.4 kB 27.2 kB 24.7 kB
createVaporSSRApp 46 kB 17.5 kB 16.1 kB
defineCustomElement 72.1 kB 27.2 kB 24.7 kB
defineVaporCustomElement 52.3 kB 19.1 kB 17.5 kB
overall 82.7 kB 31.3 kB 28.3 kB

Apps

Name Size Gzip Brotli
counter app (CAPI only) 57.5 kB 22.3 kB 20.4 kB
counter vapor app (CAPI only) 47.5 kB 17.7 kB 16.2 kB
todo app (CAPI only) 73.9 kB 28.4 kB 25.8 kB
todo vapor app (CAPI only) 80.9 kB 29.8 kB 27.1 kB

@edison1105 edison1105 added the scope: vapor related to vapor mode label Dec 3, 2026
@edison1105
edison1105 merged commit dca15a0 into vuejs:minor Dec 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants