You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sometimes you create a v-on:event="" while developing but forget to call anything inside the event handler. When the handler is empty, the element is hoisted and that generates a code that tries to access the "_cache" variable outside the render(_ctx, _cache) function.
This causes an error that is not easy to understand.
What is expected?
Compile without error (empty handler doesn't do anything), or maybe print a warning "empty v-on handler found"
What is actually happening?
ReferenceError: _cache is not defined
The text was updated successfully, but these errors were encountered:
underfin
added a commit
to underfin/vue-next
that referenced
this issue
Jul 27, 2020
Version
3.0.0-rc.3
Reproduction link
https://jsbin.com/rafugesite/edit?html,js,console,output
Steps to reproduce
sometimes you create a v-on:event="" while developing but forget to call anything inside the event handler. When the handler is empty, the element is hoisted and that generates a code that tries to access the "_cache" variable outside the render(_ctx, _cache) function.
This causes an error that is not easy to understand.
What is expected?
Compile without error (empty handler doesn't do anything), or maybe print a warning "empty v-on handler found"
What is actually happening?
ReferenceError: _cache is not defined
The text was updated successfully, but these errors were encountered: