Skip to content

Commit

Permalink
Specify required version of tslib ^2.0.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
efokschaner committed Jul 12, 2021
1 parent adf905b commit 3ec2c89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/graph/package.json
Expand Up @@ -67,6 +67,7 @@
"worker-loader": "^3.0.7"
},
"dependencies": {
"@antv/util": "^2.0.13"
"@antv/util": "^2.0.13",
"tslib": "^2.0.0"
}
}

0 comments on commit 3ec2c89

Please sign in to comment.