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

Template attributes aren't type checked #12258

Open
richardsimko opened this issue Oct 25, 2024 · 4 comments
Open

Template attributes aren't type checked #12258

richardsimko opened this issue Oct 25, 2024 · 4 comments
Labels
language-tools related to vue language-tools scope: types

Comments

@richardsimko
Copy link

richardsimko commented Oct 25, 2024

Vue version

3.5.12

Link to minimal reproduction

https://github.com/richardsimko/vue-bug

Steps to reproduce

  1. Use a <template> element in a v-for

  2. Use an invalid value for v-bind:key

  3. Check out the example repo

  4. Run npm run type-check

What is expected?

Type error on the invalid property use in v-bind:key

What is actually happening?

No error

System Info

No response

Any additional comments?

No response

@edison1105
Copy link
Member

image
I don't get it. Isn't that a type error?

@richardsimko
Copy link
Author

richardsimko commented Oct 25, 2024

You're right, it does show up in the playground but not when running locally. I updated the issue with the new repro link.

I made a repro repo from using npm create vue@latest: https://github.com/richardsimko/vue-bug

Running npm run type-check only outputs the following error:

image

@edison1105 edison1105 added language-tools related to vue language-tools scope: types and removed can't reproduce labels Oct 25, 2024
@KazariEX
Copy link
Contributor

vuejs/language-tools#4539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language-tools related to vue language-tools scope: types
Projects
None yet
Development

No branches or pull requests

3 participants