Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

npm构建失败

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

Nobody has claimed this yet.

Assessment

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

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.

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已经不维护了
Dominant language
TypeScript
Stars
66
Forks
14
Avg merge
38m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from wechat-miniprogram/mpflow

All issues in wechat-miniprogram/mpflow

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.