Property or method "xxxx" is not defined on the instance but referenced during render.

这是一个苦笑不得的?bug

全部的错误信息

vue.runtime.esm.js?3a00:601 [Vue warn]: Property or method "handleSearch" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> 
       
         
           
             ... (1 recursive calls)
               
at src/components/main/main.vue at src/App.vue

我明明写了这个方法,咋就报错了呢?
最后在朋友的帮助下,经过排查,原来是methods少写了一个s
Property or method

你可能感兴趣的:(Property or method "xxxx" is not defined on the instance but referenced during render.)