long 降到 5.2.1,重新构建就能成。我也是一样的错误,一毛一样。[:斜眼]
构建小程序npm时报错?新项目,引入了npm包之后,按照文档步骤,先npm install,然后在开发者工具构建时候遇到报错,无法成功构建miniprogram_npm,也没法正确引入。 message:发生错误 SyntaxError: parse js file (D:\wechat-pet/node_modules/long/umd/index.js) failed: Unexpected token (131:12) appid: wx13ad08276d92dcbf openid: o6zAJs3Szw65hIPbGxE3zLYQt_N4 ideVersion: 1.06.2412050 osType: win32-x64 time: 2025-04-30 17:13:38
05-02一毛一样的错误。long 降到 5.2.1 构建成了。
构建npm发生错误?cloud/aa/node_modules/long/umd/index.js)message:发生错误 SyntaxError: parse js file (F:/微信小程序//cloud/aa/node_modules/long/umd/index.js) failed: Unexpected token (131:12) ideVersion: 1.06.2503262 osType: win32-x64 time: 2025-04-09 12:38:59 [图片] long库版本5.3.1 在其它电脑上重新开通云服务,建立云函数调用数据库操作,在构建npm时也是相同错误提示. 在原来正常的项目中构建npm也是相同错误提示.
04-30