Skip to content

[Vue 2.7] types of built-in components are unknown #2540

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

Closed
kingyue737 opened this issue Mar 23, 2023 · 1 comment
Closed

[Vue 2.7] types of built-in components are unknown #2540

kingyue737 opened this issue Mar 23, 2023 · 1 comment
Labels

Comments

@kingyue737
Copy link
Contributor

kingyue737 commented Mar 23, 2023

image

Reproduction:

pnpm create vue@2
pnpm install

Then add a built-in component to no matter which .vue file, you will find volar cannot detect its type.

According to documentation, Vue 2.7 has built-in JSX types and users do not need to install @vue/runtime-dom (which export types of built-in components like <Transition> and <Transition Group>). But I cannot find such type declarations in Vue 2.7. Maybe they are not exported?

@johnsoncodehk
Copy link
Member

Maybe they are not exported?

Right, please forward this issue to the vue 2 repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants