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

Doesn't throw on invalid code like <template v-if :key=""> #11322

Open
so1ve opened this issue Jul 9, 2024 · 0 comments · May be fixed by #11323
Open

Doesn't throw on invalid code like <template v-if :key=""> #11322

so1ve opened this issue Jul 9, 2024 · 0 comments · May be fixed by #11323

Comments

@so1ve
Copy link
Member

so1ve commented Jul 9, 2024

Vue version

3.4.31

Link to minimal reproduction

https://play.vuejs.org/#eNp9UT1PwzAQ/SvWzSUIwRSVSoA6wAAIGL1E6SW4dWzLPoegKv+9Z1dNO7Td/L6s9+wtPDlX9BGhhDlh53RFuJBGiAmJ/kY1jxLIR5Qgyg3+M5KwmN9eDDTWs0cJZcTd5cwJgBlQqK1pVFusgzVcZ5sulVDbzimN/sORsiZIKEVWklZpbf/eMpfazQ58/Yv15gy/DkPiJHx6DOh73jNpVPkWaS8vv99x4PMkdnYVNbuviF8YrI6p4972HM2Ka5/4ctvXzllPyrQ/YTkQmnAYlZ+XnWP2S+A/ebky/Vj3vnjIOWlGGHeRE5b/

Steps to reproduce

Parse the code

<template>
  <template v-if="true" :key=""></template>
  <template v-for="i in 1" :key=""></template>
</template>

What is expected?

Should throw v-bind is missing expression.

What is actually happening?

No errors, and producing invalid code: vuejs/language-tools#4539 (comment)

System Info

No response

Any additional comments?

vuejs/language-tools#4539

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