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

[BUG] declare your accurate tslib dependency version #2713

Closed
xialvjun opened this issue Mar 5, 2021 · 3 comments
Closed

[BUG] declare your accurate tslib dependency version #2713

xialvjun opened this issue Mar 5, 2021 · 3 comments

Comments

@xialvjun
Copy link

xialvjun commented Mar 5, 2021

(this will be run only when your dependencies or config have changed)
 > node_modules/.pnpm/@antv/[email protected]/node_modules/@antv/g6-core/es/graph/graph.js:1:30: error: No matching export for import "__spreadArray"
    1 │ import { __assign, __extends, __spreadArray } from "tslib";~~~~~~~~~~~~~

error when starting dev server:
Error: Build failed with 1 error:
node_modules/.pnpm/@antv/[email protected]/node_modules/@antv/g6-core/es/graph/graph.js:1:30: error: No matching export for import "__spreadArray"
    at failureErrorWithLog (/Users/didi/work/data-ecosystem-model-v3/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1177:15)
    at buildResponseToResult (/Users/didi/work/data-ecosystem-model-v3/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:913:32)
    at /Users/didi/work/data-ecosystem-model-v3/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1008:20
    at /Users/didi/work/data-ecosystem-model-v3/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:559:9
    at handleIncomingPacket (/Users/didi/work/data-ecosystem-model-v3/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:648:9)
    at Socket.readFromStdout (/Users/didi/work/data-ecosystem-model-v3/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:526:7)
    at Socket.emit (events.js:314:20)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:283:9)
    at Socket.Readable.push (_stream_readable.js:222:10)
 ERROR  Command failed with exit code 1.
@Yanyan-Wang
Copy link
Contributor

update to v4.1.15 pls. related to #2702

@liho00
Copy link

liho00 commented Jun 16, 2021

its not even solved, same issue on v4.3.3

@Yanyan-Wang
Copy link
Contributor

You ts compiler does not know the operator '...'. Upgrade your tslib and ts compiler.

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

3 participants