tslib 版本太低

Open
#57 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, webpack
Domain
build-system

Research direction

Start by reproducing the webpack build from the reported entry path, src/pages/tcbi-publish/index.ts, and inspect the dependency declarations and installed tslib version. Trace the import through @antv/algorithm/es/gaddi.js; done means the build no longer reports that __spreadArray is missing from tslib.

Written by the indexing model from the issue text.

Description

[1] ../node_modules/@antv/algorithm/es/gaddi.js 498:59-72
[1] "export '__spreadArray' was not found in 'tslib'
[1] at HarmonyImportSpecifierDependency._getErrors (/Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:109:11)
[1] at HarmonyImportSpecifierDependency.getWarnings (/Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:60:15)
[1] at Compilation.reportDependencyErrorsAndWarnings (/Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/Compilation.js:1454:24)
[1] at /Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/Compilation.js:1258:10
[1] at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/fanzhou/Documents/code/tcv/node_modules/tapable/lib/HookCodeFactory.js:33:10), :20:1)
[1] at AsyncSeriesHook.lazyCompileHook (/Users/fanzhou/Documents/code/tcv/node_modules/tapable/lib/Hook.js:154:20)
[1] at Compilation.finish (/Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/Compilation.js:1253:28)
[1] at /Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/Compiler.js:672:17
[1] at _done (eval at create (/Users/fanzhou/Documents/code/tcv/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
[1] at eval (eval at create (/Users/fanzhou/Documents/code/tcv/node_modules/tapable/lib/HookCodeFactory.js:33:10), :68:22)
[1] at /Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/Compilation.js:1185:12
[1] at /Users/fanzhou/Documents/code/tcv/node_modules/webpack/lib/Compilation.js:1097:9
[1] at processTicksAndRejections (node:internal/process/task_queues:78:11)
[1] @ ../node_modules/@antv/algorithm/es/index.js
[1] @ ../node_modules/@antv/g6-pc/es/index.js
[1] @ ../node_modules/@antv/g6/es/index.js
[1] @ ../src/pages/tcbi/routes/cube/edit/panels/RightTopLink/VisualLink/utils/convert.ts
[1] @ ../src/pages/tcbi/routes/cube/edit/panels/RightTopLink/VisualLink/VisualLink.tsx
[1] @ ../src/pages/tcbi/routes/cube/edit/panels/RightTopLink/RightTopLink.tsx
[1] @ ../src/pages/tcbi/routes/cube/edit/EditWorkbench.tsx
[1] @ ../src/pages/tcbi/routes/cube/index.tsx
[1] @ ../src/pages/tcbi/routes/index.tsx
[1] @ ../src/pages/tcbi/app/Root.tsx
[1] @ ../src/pages/tcbi/app/App.tsx
[1] @ ../src/pages/tcbi-publish/init.tsx
[1] @ ../src/pages/tcbi-publish/index.ts

Dominant language
TypeScript
Stars
106
Forks
23
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from antvis/algorithm

All issues in antvis/algorithm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.