引入最新vant webapp的dist包,最开始报错有个文件格式错误,后重新找了份
[HBuilder] 10:55:50.571 文件查找失败:'@/components/uni-shadow-root/uni-shadow-root.vue' at wxcomponents/button/index.vue:1
[HBuilder] 10:55:50.581 文件查找失败:'@/components/uni-shadow-root/uni-shadow-root.vue' at wxcomponents/icon/index.vue:1
[HBuilder] 10:55:50.581 文件查找失败:'@/components/uni-shadow-root/uni-shadow-root.vue' at wxcomponents/info/index.vue:1
[HBuilder] 10:55:50.589 文件查找失败:'@/components/uni-shadow-root/uni-shadow-root.vue' at wxcomponents/loading/index.vue:1
[HBuilder] 10:55:50.590 DONE Build complete.
[HBuilder] 10:55:50.600 项目 'gamebox-app' 编译成功。
[HBuilder] 10:55:50.612 文件查找失败:'@/components/uni-shadow-root/uni-shadow-root.vue' at wxcomponents/button/index.vue:1
[HBuilder] 10:55:50.622 文件查找失败:'@/components/uni-shadow-root/uni-shadow-root.vue' at wxcomponents/icon/index.vue:1
各种排查....删除pages.json中的easycom就好了
"easycom": {
"autoscan": true,
"custom": {
"uni-(.*)": "@/components/uni-$1/uni-$1.vue", // 匹配components目录下组件名称/组件名称内的vue文件
"vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配node_modules内的vue文件
}
}