uniapp之引入vant webapp打包app报错

引入最新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
image.png

各种排查....删除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文件
    }
  }
image.png
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容