Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'__spreadArray' is not exported from 'tslib'. #2702

Closed
qqxiaofeizhu opened this issue Mar 3, 2021 · 6 comments
Closed

'__spreadArray' is not exported from 'tslib'. #2702

qqxiaofeizhu opened this issue Mar 3, 2021 · 6 comments

Comments

@qqxiaofeizhu
Copy link

image
但是在tslib中没有找到__spreadArray,只有__spreadArrays
image

@yzStrive
Copy link

yzStrive commented Mar 3, 2021

+1
image

@resurrexi
Copy link

This error seems to be related to 4.1.13. I didn't get the error after downgrading to 4.1.12.

@baizn baizn mentioned this issue Mar 3, 2021
3 tasks
@baizn
Copy link
Contributor

baizn commented Mar 3, 2021

This __spreadArray method is not available in the lower version of tslib, such version 1.14.x or 2.0.1

@ankitachdhr145
Copy link

+1 in 4.1.13

@qqxiaofeizhu
Copy link
Author

单独安装tslib到最新的版本,即可解决这个问题

@huoyuhao
Copy link

单独安装tslib到最新的版本,即可解决这个问题
我使用的vue3 ,单独安装 "tslib": "^1.14.1",仍然报错

efokschaner added a commit to efokschaner/algorithm that referenced this issue Jul 12, 2021
The version + features of typescript used to compile this lib means that tslib needs to be at version 2.0.0 minimum.

Because `antvis/algorithm` doesn't specify an explicit version, it is not guaranteed that developers receive the necessary version.
This causes the following error at import time:
```
./node_modules/@antv/algorithm/es/gaddi.js
Attempted import error: '__spreadArray' is not exported from 'tslib'.
```

You can see here all the other projects updating their tslib dependencies similarly in the references to this PR: microsoft/tslib#133

This relates to
antvis/G6#2702
and
antvis/G6#2713
it is likely necessary, but may not be sufficient, to fix those reported issues. There could be other `antvis` packages with the same issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants