mpflow icon indicating copy to clipboard operation
mpflow copied to clipboard

npm构建失败

Open qq382724935 opened this issue 1 year ago • 1 comments

  1. 使用mpflow创建了一个自定义第三方库(@unif/mini-camera)
  2. 在原小程序项目install 成功后,进行npm构建,报错SyntaxError: parse js file (/Users/liulijun/Projects/tongyi/retail-mini-unif/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js) failed: 'return' outside of function (25:2) [1.06.2404301][darwin-x64].
  3. 看提示是@babel/plugin-proposal-private-property-in-object这个库存在兼容问题,这个库是脚手架使用的,看 npm已经不维护了

qq382724935 avatar May 29 '24 01:05 qq382724935