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

Typing error when rendering a VNode using <component> #2720

Closed
smarlhens opened this issue Apr 26, 2023 · 0 comments
Closed

Typing error when rendering a VNode using <component> #2720

smarlhens opened this issue Apr 26, 2023 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@smarlhens
Copy link

smarlhens commented Apr 26, 2023

Hi there 👋🏻 ,

I hope you are fine, thanks for your amazing job.

I am getting this issue when I use <component> from vue with a VNode:

<template>
  <div>
    <component :is="component1"></component>
  </div>
</template>

<script setup lang="ts">
import type { VNode } from 'vue';
import { h } from 'vue';

const component1: VNode = h('span', 'Foobar');
</script>

image

Binaries:
  Node: 16.14.2
  npm: 7.17.0 
npmPackages:
  typescript: 5.0.4
  vue: 3.3.0-beta.2
  vue-tsc: 1.5.4

Repro repo: https://stackblitz.com/edit/vitejs-vite-i2cuad

Wish you a great day 🌞
Stay safe

@johnsoncodehk johnsoncodehk added pending triage good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first bug Something isn't working and removed pending triage labels Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 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