antvis / antvis/F2

错误 编译失败 node_modules/@antv/f2/node_modules/@antv/scale/lib/time-cat.js Error: Couldn't find preset "@babel/preset-env" relative to directory

Open
#1,014 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://example.com/nodemo](https://example.com/nodemo)

### Steps to reproduce
关键是我前几天都没有这个问题,今天一打开就这样,我还恢复了几天前没有问题的版本,花了1天,还是这个问题,我发现版本控制是笑话吗?

| Environment | Info |
|---|---|
| f2 | 3.3.1 |
| System | mac |
| Browser | 微信小程序 |

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the compile failure in the reported macOS and WeChat Mini Program environment, then inspect node_modules/@antv/f2/node_modules/@antv/scale/lib/time-cat.js and the dependency configuration for @babel/preset-env resolution. Done means the F2 3.3.1 build completes without the reported preset error, with the reproduction result documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.