wechat-miniprogram / wechat-miniprogram/mpflow

npm构建失败

Open
#20 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
66
Forks
14
Avg merge
38m
Merged PRs (30d)
2

Description

  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已经不维护了

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the npm build in the original mini-program project after installing @unif/mini-camera. Start with node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js and the reported parse location (25:2), then trace how the scaffold invokes it. Done means the npm build completes without the reported SyntaxError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.