wechat-miniprogram / wechat-miniprogram/mpflow
npm构建失败
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 66
- Forks
- 14
- Avg merge
- 38m
- Merged PRs (30d)
- 2
Description
- 使用mpflow创建了一个自定义第三方库(@unif/mini-camera)
- 在原小程序项目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].
- 看提示是@babel/plugin-proposal-private-property-in-object这个库存在兼容问题,这个库是脚手架使用的,看 npm已经不维护了
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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