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

[Vue 2.7][v1.4.x] component slot type declaration not working any more #2682

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

Comments

@kingyue737
Copy link
Contributor

image

vue-tsc cannot recognize any slot type of component and all the slot props become never

No such issue for version <=1.2

repro: https://github.com/kingyue737/volar-slot-prop-bug
component type is declared in src/component.d.ts
component VDataTable for testing type is added in template of src/App.vue

@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Apr 23, 2023
@CKATEPTb
Copy link

I have some problem with Vue3 in Intellij Idea. Maybe anyone has solution?

@ghiscoding
Copy link
Contributor

ghiscoding commented Apr 24, 2023

I updated to 1.5.2 and that fixed it on my side, note that 1.5.2 is a pre-release and so it might not show in your list of updates. You can see all versions in the main changelog and their pre-release tag

@johnsoncodehk did you intend to keep latest versions with a pre-release tag or was it something you forgot to remove (pre-release)?

@johnsoncodehk
Copy link
Member

We use odd version number for pre-release, FYI: https://twitter.com/johnsoncodehk/status/1634137224198406145

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

4 participants