antvis / antvis/F2

uniapp项目vue2版本使用npm install @antv/f2 --save安装后引入组件报错

Open
#1,901 6 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://github.com/dakedou/online](https://github.com/dakedou/online)

### Steps to reproduce
引入@antv/f2后报错 。错误内容TypeError: (0 , _tslib.__spreadArray) is not a function
at DefaultStyleValueRegistry.registerMetadata (pages-demo-demo.js:26413:261)
at pages-demo-demo.js:26413:134
at Array.forEach ()
at new DefaultStyleValueRegistry (pages-demo-demo.js:26413:101)
at Object. (pages-demo-demo.js:27243:466)
at Object.RfGs (pages-demo-demo.js:27892:30)
at __webpack_require__ (index.js:854:30)
at fn (index.js:151:20)
at Object.ep9H (pages-demo-demo.js:35150:14)
at __webpack_require__ (index.js:854:30)

| Environment | Info |
|---|---|
| f2 | 5.0.39 |
| System | - |
| Browser | 谷歌最新版 |

---
报错问题可能出现在_tslib.__spreadArray 。 本地打印_tslib.只有_tslib.__spreadArrays为什么项目中出现spreadArray 。期待尽快给与回复

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction repository at https://github.com/dakedou/online and inspect the generated pages-demo-demo.js stack trace around DefaultStyleValueRegistry, along with the tslib import visible in the report. Reproduce the Vue 2 uniapp install and component import using F2 5.0.39; done means the import runs without the __spreadArray TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.