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

🧐[问题]"export '__spreadArray' was not found in 'tslib' #576

Closed
assignali opened this issue Apr 19, 2021 · 10 comments
Closed

🧐[问题]"export '__spreadArray' was not found in 'tslib' #576

assignali opened this issue Apr 19, 2021 · 10 comments

Comments

@assignali
Copy link

WARNING in ./node_modules/@antv/g6-core/es/util/validation.js 57:26-39
"export '__spreadArray' was not found in 'tslib'
image
image

@lxfu1
Copy link
Member

lxfu1 commented Apr 19, 2021

antvis/G6#2702

@lxfu1 lxfu1 closed this as completed Apr 19, 2021
@birdycn
Copy link

birdycn commented May 20, 2021

@lxfu1 请问这个问题应该怎么解决,没看懂

@hustcc
Copy link
Collaborator

hustcc commented May 20, 2021

@lxfu1 请问这个问题应该怎么解决,没看懂

点到这个地址:antvis/G6#2702

然后进去看,里面有说明解法。

image

@birdycn
Copy link

birdycn commented May 20, 2021

我使用 npm i tslib,安装失败,请问你们是怎么安装的

@lxfu1
Copy link
Member

lxfu1 commented May 20, 2021

npm install tslib --save

@birdycn
Copy link

birdycn commented May 20, 2021

npm install tslib --save

报错

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path \node_modules\tslib
npm ERR! dest  \node_modules\react-easy-crop\node_modules\tslib
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename '\node_modules\tslib' -> '\node_modules\react-easy-crop\node_modules\tslib'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

@lxfu1
Copy link
Member

lxfu1 commented May 20, 2021

npm install tslib --save

报错

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path \node_modules\tslib
npm ERR! dest  \node_modules\react-easy-crop\node_modules\tslib
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename '\node_modules\tslib' -> '\node_modules\react-easy-crop\node_modules\tslib'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

删除 node_modules 安装试试

@birdycn
Copy link

birdycn commented May 20, 2021

删除lock.json好了

@guguji5
Copy link

guguji5 commented Dec 24, 2021

npm install tslib --save

image

我的tslib是"version": "2.3.1"。解决了一个报错,又出来另一个报错。

@lxfu1
Copy link
Member

lxfu1 commented Dec 24, 2021

npm install tslib --save

image

我的tslib是"version": "2.3.1"。解决了一个报错,又出来另一个报错。

用的什么图?

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

5 participants