Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<component> cannot take string via :is #2737

Closed
danielroe opened this issue Apr 27, 2023 · 1 comment
Closed

<component> cannot take string via :is #2737

danielroe opened this issue Apr 27, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@danielroe
Copy link
Member

danielroe commented Apr 27, 2023

Reproduction

(Tested in packages/vue-test-workspace/vue-tsc/dynamic-component/main.vue.)

<script setup lang="ts">
const tag = 'div' as string
</script>

<template>
	<component :is="tag" />
	<component :is="'div'" />
</template>

Context

nuxt/nuxt#20514

@johnsoncodehk
Copy link
Member

Duplicate of #2725

@johnsoncodehk johnsoncodehk marked this as a duplicate of #2725 Apr 27, 2023
@johnsoncodehk johnsoncodehk closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2023
@johnsoncodehk johnsoncodehk added duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants