You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<template>
<div>
<p>I'm parent.</p>
<p>This can work: {{right}} -> (<ChildPage/>)</p>
<p>This can't work: {{wrong}} -> (<child-page/>)</p>
<p>Because I coded 'const childPage = ref(null)'. If I delete it, they both can show.</p>
</div>
</template>
<script setup>
importChildPagefrom'./ChildPage.vue'import { ref } from'vue'constright=ref(`<ChildPage/>`)constwrong=ref(`<child-page/>`)constchildPage=ref(null) // If I delete it, they both can show.
</script>
<style></style>
Version
2.7.7
Reproduction link
github.com
Steps to reproduce
pnpm i
pnpm dev
What is expected?
Kebab-case component can be rendered.
What is actually happening?
Kebab-case component can't be rendered. But when I delete ref sentence, it works.
Is it a bug?
It can work in vue3.
It also can work in vue2.6 + vue-composition-api.
The text was updated successfully, but these errors were encountered: