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

False ts(6133) error message #3466

Open
KamilBeda opened this issue Aug 3, 2023 · 4 comments
Open

False ts(6133) error message #3466

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

Comments

@KamilBeda
Copy link

Issue:

VSCode with latest Volar (1.8.8) complains about values that are declared and never read if values are used inside template with v-else of v-else-if.

Reproduction:

  1. Clone this repo: https://github.com/KamilBeda/nuxt-vs-code-typescript-bug
  2. Install dependencies
  3. Open app.vue and look at the error at doSomething function

Temporary fix:

Reverting Volar to 1.8.7

@so1ve so1ve added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Aug 3, 2023
@so1ve
Copy link
Member

so1ve commented Aug 3, 2023

Reverting to 1.8.7 does not solve this problem :(

@KamilBeda
Copy link
Author

For me it does but it intruduced Vue language server crashes so I reverted to 1.8.6 and everything seems to work fine now

@so1ve
Copy link
Member

so1ve commented Sep 2, 2023

Interesting, when volar parses the code, the AST node of the second slot is totally lost!

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

Successfully merging a pull request may close this issue.

2 participants