Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Property does not exist on events #3107

Closed
4 tasks done
last-partizan opened this issue Aug 12, 2021 · 0 comments
Closed
4 tasks done

Property does not exist on events #3107

last-partizan opened this issue Aug 12, 2021 · 0 comments

Comments

@last-partizan
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Linux
  • Vetur version: Latest
  • VS Code version: N/A

Problem

Vetur does not recognize property in inline @event handlers.

Property 'newPage' does not exist on type '"click"'

image

Reproducible Case

<template>
  <button @click="page = newPage">
    Switch to page {{ newPage }}
  </button>
</template>

<script>
export default {
  data() {
    return {
      page: "home",
      newPage: "products",
    }
  },
}
</script>

https://github.com/last-partizan/vetur-props-validation-bug/blob/events-bug/src/Test.vue

@yoyo930021 yoyo930021 added the bug label Oct 4, 2021
@yoyo930021 yoyo930021 self-assigned this Oct 4, 2021
@yoyo930021 yoyo930021 added this to the v0.35.0 milestone Oct 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants