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-tsc: Cannot find name '$slots'. #1422

Closed
Lilja opened this issue Jun 8, 2022 · 3 comments
Closed

vue-tsc: Cannot find name '$slots'. #1422

Lilja opened this issue Jun 8, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Lilja
Copy link

Lilja commented Jun 8, 2022

Semi related to #701

$ npx vue-tsc --noEmit
src/components/HelloWorld.vue:13:50 - error TS2304: Cannot find name '$slots'.

13       v-for="(_, name) in ($slots as Pick<typeof $slots, 'default'| 'actions'| 'expanded'>)"
                                                    ~~~~~~

Found 1 error in src/components/HelloWorld.vue:13

Repro: clone, install and npx vue-tsc --noEmit

@Lilja
Copy link
Author

Lilja commented Jun 8, 2022

Works with 0.33.9, breaks with 0.34.4?

@johnsoncodehk
Copy link
Member

Hi @Lilja, can you reproduce this problem in 0.37.3?

@Lilja
Copy link
Author

Lilja commented Jun 8, 2022

Hey @johnsoncodehk I tried with latest at first yes and it's still a problem.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants