van-action-sheet - did you register the component correctly? For recursive components, make sure t

在使用Vant UI组件的ActionSheet 上拉菜单时一直报错,有遇到的嘛?

vue.esm.js?efeb:628 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> at src/mobile/views/ApplicationDetail.vue
        at src/App.vue
         

 

兄弟你碰到这个问题大概率是中途接手的项目,其实这是Vant的版本问题导致的,你应该是实际使用的是Vant1.x,而使用的是Vant2.x的api,故而报了这个错误,这个问题我踩了好久

建议看看Vant1.x的文档https://youzan.github.io/vant/1.x/#/zh-CN/actionsheet

你可能感兴趣的:(vue.js入门)