vant-weapp icon indicating copy to clipboard operation
vant-weapp copied to clipboard

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.

Open majinxin8023 opened this issue 1 year ago • 2 comments

重现链接

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

majinxin8023 avatar Oct 08 '24 10:10 majinxin8023

使用的是uni-app 进行 h5页面 开发

majinxin8023 avatar Oct 08 '24 10:10 majinxin8023

这个库只处理微信小程序的相关问题 这个是小程序版本

TallNutAlt avatar Oct 11 '24 06:10 TallNutAlt