[Vuejs]-Vue lifecycle hook typescript error when invoking method

0👍

Regardless of whether or not you have already solved this yourself considering it has been a few weeks:

Since you are using TypeScript, you do not need to define the methods inside the “methods” object. You can just define them directly on the class.

Leave a comment