VM47 index.html:3 Module build failed (from C:/snapshot/cube/node_modules/@ali/antcube-thread-loader/lib/cjs.js):
Thread Loader (Worker 3)
SyntaxError: f:/wwwroot/jiulai-uni-merchants/unpackage/dist/dev/mp-alipay/uni_modules/uview-plus/components/u-form/u-form.js: Unexpected token (259:89)
257 | childErrors.push(...errors);
258 | }
259 | child.message = ((_a = childErrors[0]) == null ? void 0 : _a.message) ?? null;
| ^
260 | }
261 | );
262 | }
at transpile (C:\snapshot\cube\node_modules\babel-loader\lib\index.js:65:13)
at Object.<anonymous> (C:\snapshot\cube\node_modules\babel-loader\lib\index.js:173:20)
2 个回复
y***@163.com
同问,这个要怎么解决。楼主解决了没?
y***@163.com
我的临时性解决方法:去uview-plus包依赖中找到 u-form 组件中的对应代码部分,将 es6 的 Null 判断运算符(??)改成 ||