Type of the default value for 'searches' prop must be a function 如何解决vue中报出的这种错误

时间:2021-02-12 17:10:32

https://google.com/#q=vue%2Frequire-valid-default-prop  Type of the default value for 'searches' prop must be a function     src/base/search-list/search-list.vue:20:11Type of the default value for 'searches' prop must be a function 如何解决vue中报出的这种错误

Type of the default value for 'searches' prop must be a function 如何解决vue中报出的这种错误

 

Type of the default value for 'searches' prop must be a function 如何解决vue中报出的这种错误

 这是在github中看到解决方案,具体的解释可以打开链接

https://github.com/vuejs/vue/issues/1032

Type of the default value for 'searches' prop must be a function 如何解决vue中报出的这种错误