chunk-vendors.js:29671 [Vue warn]: Unknown custom element: <include> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <VanField> at wxcomponents/vant/field/index.vue
at pages/login/index.vue
[或者可以直接贴源代码]
预期结果
[使用简洁清晰的语言描述你希望生效的预期结果]
正常使用组件
实际结果
[这里请贴上你的报错截图或文字]
chunk-vendors.js:29671 [Vue warn]: Unknown custom element: <include> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <VanField> at wxcomponents/vant/field/index.vue
at pages/login/index.vue
问题描述 [问题描述:尽可能简洁清晰地把问题描述清楚]
引入最新的vant组件,编译运行报错。
https://github.com/youzan/vant-weapp
复现步骤 [复现问题的步骤]
下载 https://github.com/youzan/vant-weapp 的 dist 文件(2021年08月11日 11:25)
放入
wxcomponents
引入 "van-field": "/wxcomponents/vant/field/index"
使用 van-field
yarn run dev:h5
到对应页面看到控制台报错
[或者可以直接贴源代码]
预期结果 [使用简洁清晰的语言描述你希望生效的预期结果] 正常使用组件
实际结果 [这里请贴上你的报错截图或文字]
系统信息:
补充信息 [可选] [根据你的分析,出现这个问题的原因可能在哪里?]
uni-app 编译wx文件生成vue文件时,没有兼容微信的 include 组件
以前 vant 用的 是 textarea 的,现在改用 include 了