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"
},
0 个回复