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