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: <van-action-sheet> - did you register the component correctly? For recursive components, make s..
·
在使用Vant UI组件的ActionSheet 上拉菜单时一直报错,有遇到的嘛?
vue.esm.js?efeb:628 [Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <Application> at src/mobile/views/ApplicationDetail.vue
<App> at src/App.vue
<Root>
兄弟你碰到这个问题大概率是中途接手的项目,其实这是Vant的版本问题导致的,你应该是实际使用的是Vant1.x,而使用的是Vant2.x的api,故而报了这个错误,这个问题我踩了好久
建议看看Vant1.x的文档https://youzan.github.io/vant/1.x/#/zh-CN/actionsheet
更多推荐
已为社区贡献19条内容
所有评论(0)