supportBank.vue:30 [Vue warn]: Failed to resolve component: van-index-anchor If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
重现链接
pages.json
{ "path": "pages/payment/supportBank", "style": { "navigationBarTitleText": "支持银行卡列表", "navigationStyle": "custom" }, "usingComponents": { "van-index-bar": "@vant/weapp/index-bar/index", "van-index-anchor": "@vant/weapp/index-anchor/index", "van-button": "@vant/weapp/button/index" } },
在页面中直接引入, 已经安装了@vant/weapp,
Vant Weapp 版本
1.11.6
描述一下你遇到的问题。
supportBank.vue:30 [Vue warn]: Failed to resolve component: van-index-anchor If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. at <SupportBank> at <AsyncComponentWrapper> at <PageBody> at <Page> at <Anonymous> at <KeepAlive> at <RouterView> at <Layout> at <App>
重现步骤
supportBank.vue:30 [Vue warn]: Failed to resolve component: van-index-anchor If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. at <SupportBank> at <AsyncComponentWrapper> at <PageBody> at <Page> at <Anonymous> at <KeepAlive> at <RouterView> at <Layout> at <App>
设备/浏览器
No response
使用的是uni-app 进行 h5页面 开发
这个库只处理微信小程序的相关问题 这个是小程序版本