Broken export to CodeSandbox
thinkh opened this issue · 2 comments
thinkh commented
- Release number or git hash: 4.0.0
- Web browser version and OS: Chrome 87
Steps to reproduce
- Open https://lineup.js.org/app_develop/#soccer
- Export to example to CodeSandbox.io
Observed behavior
Error 1
DependencyNotFoundError
Could not find dependency: 'tslib' relative to '/node_modules/lineupjs/src/provider/ADataProvider.js'
If I follow the instructions and import tslib, I get the following error.
Error 2
TypeError
Cannot read property 'FLOAT_ASC' of undefined
...
1 |
> 2 | import * as LineUpJS from "lineupjs";
3 | import "lineupjs/build/LineUpJS.css";
4 | import * as Papa from "papaparse";
5 |
Switching the dependency to LineUp v4.1.1 shows the same error.
Expected behavior
The export should work without errors and show the demo.
sgratzl commented
the dev version of lineupjs (lineupjs@next) should have no problems anymore with circular imports
dg-datavisyn commented
I still have the issue with the version 4.2.0-alpha.1 which is labelled as next on npmjs.
See https://codesandbox.io/s/lineup-boiler-plate-pktp1?file=/package.json