component is accessible by this
from function declared in <script setup>
on dev mode
#6822
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
🐞 bug
Something isn't working
Vue version
3.2.40
Link to minimal reproduction
https://sfc.vuejs.org/#__DEV__eNqNkc9uwjAMxl/FygUQNEHbTqhM7D1yKWkKGc0fJQ7TVPXd57QcgEnTbrH92T/7y8A+QuDXrNmO1UlFExCSxhzepTM2+IgwQNQdjNBFb2FB0oV00invEoLy2SHsi2K5XZV8l51C4x103i9XMEgHpHLJ95r3/rTEs0l8aiP5KF0tZirxKEBtQ9+gpgigbs0VVN+ktJdMNbGVbMpT5ZgRiYHfQVNtjiSDg+qNuhR1AazX1DBvaBIMw23bcazF3PHfadMpNMtnDPl29MOMWtCq9KrF3QFsw2YHK9sE/pm8I48nP+StkCTbzQ6VHDlbYsnOiCHthMguXE7klRUHqolIVGN11Xp7eOUv/G1L1IT3ea6TrY7RfyUdiSjZ5m64oORVxypq1+qo45+wJ+0D8Kn2C1qY9LMjG38AeufSrA==
Steps to reproduce
output count
buttonNote that
@click="foo()"
is usingfoo()
. It work well when this is@click="foo"
.What is expected?
Cannot read properties of undefined (reading 'count')
error happen on dev too. (it happens on prod)What is actually happening?
0
will be shown in console on devSystem Info
No response
Any additional comments?
original issue: vitejs/vite#3872
The text was updated successfully, but these errors were encountered: