Subscribe on changes!

@click producing Uncaught ReferenceError: _cache is not defined

avatar
Aug 13th 2021

Version

3.2.2

Reproduction link

Link here

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:

  1. The @click event comes before the class declarations
  2. The class does not recruit a bind
  3. Other mouse events are used - such as mousedown
  4. 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!

avatar
Aug 13th 2021

works fine in v3.1.x

avatar
Aug 13th 2021

+1