lineupjs/lineup_app

Broken export to CodeSandbox

thinkh opened this issue · 2 comments

  • Release number or git hash: 4.0.0
  • Web browser version and OS: Chrome 87

Steps to reproduce

  1. Open https://lineup.js.org/app_develop/#soccer
  2. 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'

grafik

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 | 

grafik

Switching the dependency to LineUp v4.1.1 shows the same error.

grafik

Expected behavior

The export should work without errors and show the demo.

the dev version of lineupjs (lineupjs@next) should have no problems anymore with circular imports

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