antvis / antvis/Graphin

引入antv/graphin后报错显示"export '__spreadArray' was not found in 'tslib'

Open
#327 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

在React项目中引入了graphin之后yarn start控制台报错"export '__spreadArray' was not found in 'tslib'
![image](https://user-images.githubusercontent.com/32869650/144030680-4aecc236-bf1c-4b4f-9c0b-1ee67e76a706.png)

已尝试过npm install tslib --save和npm install tslib --save -dev但是均无效

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported error in the React project with `yarn start` and inspect the Graphin and tslib dependency versions. The report names no source file or test; done means the `export '__spreadArray' was not found in 'tslib'` error no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
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.