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

uniapp之引入vant webapp打包app报错

各种排查….删除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文件
    }
  }

uniapp之引入vant webapp打包app报错

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
广东卓玺集团的头像 - 鹿快
评论 抢沙发

请登录后发表评论

    暂无评论内容