@click producing Uncaught ReferenceError: _cache is not defined
Version
3.2.2
Reproduction link
Steps to reproduce
Declare @click in an element tag after a bound class declaration (e.g. :class={classname:true})
What is expected?
Allows for click events in the same manner as v-bind:click, or if the @click was declared in other locations of the tag
What is actually happening?
Error is thrown: Uncaught ReferenceError: _cache is not defined
I'm not sure why, but this error only arises when @click is declared after a bound class declaration. As outlined in the playground, some exceptions include:
- The @click event comes before the class declarations
- The class does not recruit a bind
- Other mouse events are used - such as mousedown
- If v-bind:click is used instead
I'm not sure if this is my error, or if something's going wrong - thanks in advance!