j***@qq.com
j***@qq.com
  • 发布:2023-04-23 15:04
  • 更新:2023-04-23 15:04
  • 阅读:767

编译成功,但运行到支付宝小程序报错Module build failed antcube-thread-loader/lib/cjs.js

分类:uni-app

Module build failed (from C:/snapshot/code-repo/out/target/bundle/node_modules/@ali/antcube-thread-loader/lib/cjs.js):
Thread Loader (Worker 0)
SyntaxError: c:/Users/jiang/Desktop/home_guard/miniapp-home_guard/unpackage/dist/dev/mp-alipay/pages/behalf_writing_consult/behalf_writing_consult.axml: Unexpected token (24:7)

22 | const UFormItem_ = $getComponentClass("/unimodules/uview-ui/components/u-form-item/u-form-item")
23 | const UFormItem = UFormItem
|| $EmptyComponentFactory("u-form-item");

24 | const U-Input_ = $getComponentClass("/unimodules/uview-ui/components/u--input/u--input")
| ^
25 | const U-Input = U-Input
|| $EmptyComponentFactory("u--input");
26 | const UIcon_ = $getComponentClass("/unimodules/uview-ui/components/u-icon/u-icon")
27 | const UIcon = UIcon
|| $EmptyComponentFactory("u-icon");

具体是manifest.json中增加了如下配置中的plugins部分,移除则不会报错
"mp-alipay" : {
"usingComponents" : true,
"plugins" : {
"couponPlugin" : {
"version" : "*",
"provider" : "2021001154663141"
}
},
"appid" : "2021003165610011"
},

2023-04-23 15:04 负责人:无 分享
已邀请:

要回复问题请先登录注册