Method “computed” has type “object” in the component definition. Did you reference the function correctly?

Method “computed” has type “object” in the component definition. Did you reference the function correctly? If you are getting this error from a vue js component, one of the reason might be due to the below scenario. You are trying to place a compute property inside a methods section in vue js.

Incorrect!! – Here the computed property is defined inside the methods wrapper. It should be outside like below.
Correct!! Move your computed property outside the methods wrapper.

Hope this helps resolving your Issue. Have any questions? or need help with this topic, please do reach out to me at kvtinformatica@gmail.com. Don’t forget to follow my Youtube channel and FB page, Lets stay connected and learn together.