vuedx/languagetools

Unexpected token. Did you mean `{'}'}` or `}`? on `button`

TheDutchCoder opened this issue · 0 comments

Describe the bug
When adding a button to a template with the following attributes, VueDX throws an error (in a completely different place btw:

        <button
          data-notification-button
          :class="classes.notificationCloseButton"
          @click.prevent="closeNotification"
        >
          <cl-icon icon="XIcon" />
        </button>

The error shows somewhere up the tree and seems to be random:
image

To Reproduce
I've not been able to track the root cause of this issue, seems to have something to do with nesting?

Expected behavior
No error to be thrown.

Screenshots/Recording
See above

Info (please complete the following information):

  • OS 11.2.1
  • IDE VSCode
  • TypeScript Version 4.2.2
  • Vue Version Latest