alexjoverm / alexjoverm/typescript-library-starter

`Error: '__spreadArrays' is not exported by tslib` occurs when `npm run build`

オープン
#310 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
4.4k
フォーク
476
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, I got an error when `npm run build`, the message shown has nothing to do with my source code.
```
(!) Error when using sourcemap for reporting an error: Can't resolve original location of error.
src/Row.ts: (1:43)
[!] Error: '__spreadArrays' is not exported by tslib
https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-
src/Row.ts (1:43)
1: import {Cell} from './Cell';
^
2: import {Table} from './Table';
3: import {Column} from './Column';
Error: '__spreadArrays' is not exported by tslib
at error (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:3460:30)
at Module.error (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:13350:9)
at handleMissingExport (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:13040:21)
at Module.traceVariable (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:13454:17)
at ModuleScope.findVariable (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:12726:29)
at FunctionScope.Scope.findVariable (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:4022:68)
at Scope.findVariable (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:4022:68)
at FunctionScope.Scope.findVariable (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:4022:68)
at Scope.findVariable (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:4022:68)
at Identifier$$1.bind (/Users/xxx/Workspace/projects/mytable/node_modules/rollup/dist/rollup.js:10111:40)
```
these are all modules I added in my project:
```
"devDependencies": {
// ...
"rollup-plugin-less": "latest"
},
"dependencies": {
"handsontable": "^6.2.2",
"lodash": "^4.17.11",
"nanobus": "^4.4.0",
"uuid": "^3.3.2"
}
```
the complete log is [here](https://github.com/alexjoverm/typescript-library-starter/files/3663705/mytable.log)

i would really appreciate it if you can help me.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。