Environment
Nuxt project info:
|
|
| Operating system |
Linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0 |
| CPU |
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (8 cores) |
| Node.js version |
v20.19.1 |
| nuxt/cli version |
3.31.3 |
| Package manager |
pnpm@8.15.6 |
| Nuxt version |
4.2.2 |
| Nitro version |
2.12.9 |
| Builder |
vite@7.3.0 |
| Config |
compatibilityDate, devtools |
| Modules |
- |
Reproduction
https://stackblitz.com/edit/github-zx7x5nga
Describe the bug
When I use template ref on a custom element in SSR mode. It will render a ref="[object Object]" attribute unexpectedly:
<my-component ref="[object Object]">hello</my-component>
Additional context
No response
Logs