npm构建失败
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
- Tech stack
- javascript, typescript
- 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
- 使用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已经不维护了
- 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
- 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.
More from wechat-miniprogram/mpflow
-
不支持 scss?Open
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
wechat-miniprogram/mpflow#15 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wechat-miniprogram/mpflow#10 ·
-
不能使用第三方控件库 如:vantOpenbug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
wechat-miniprogram/mpflow#9 · 2 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wechat-miniprogram/mpflow#8 · 2 comments ·
All issues in wechat-miniprogram/mpflow
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
siyuan-note/siyuan#20040 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunestoneInteractive/rs#1574 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
remotion-dev/remotion#11901 ·
Maintainers usually reply within 1 day
-
Poll constructor throws for an uncached channel while resolving a message context-menu interactionOpenbug need repro packages:discord.js
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
discordjs/discord.js#11645 ·
Maintainers usually reply within 3 days
-
🐞 bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Sitecore/content-sdk#641 ·
Maintainers usually reply within 2 days