antvis / antvis/G6

[Bug]: uniapp vue2中引入antvg6v4.8.21版本会报错TypeError: (0 , _tslib.__spreadArray) is not a function

Open
#7,219 0 comments 0 reactions 0 assignees View on GitHub
v4 waiting for maintainer
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

[Bug]: uniapp vue2中引入antvg6v4.8.21版本游览器会报错TypeError: (0 , _tslib.__spreadArray) is not a function

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### Version / 版本

4.x

### OS / 操作系统

- [ ] macOS
- [x] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

No reproduction link, steps, files, or tests are provided. Start by reproducing the error in a uniapp Vue 2 project using G6 4.8.21 in Chrome, then inspect the G6 4.x build and its tslib compatibility. Done means the browser no longer reports that __spreadArray is not a function.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.