-
Notifications
You must be signed in to change notification settings - Fork 148
Issues with building HiPlot from source #282
Description
First of all, thank you very much for this amazing package. However, I'm having an issue building HiPlot from source, specifically with running "npm install". I've tried npm with different versions (v7.21.1, v6.14.15, v6.14.5) but get errors when I try to install all the packages such as below:
`node_modules/datatables.net/types/types.d.ts:119:9 - error TS2717: Subsequent property declarations must have the same type. Property 'DataTable' must be of type '(opts?: Settings) => Api', but here has type 'JQueryDataTableApi'.
119 DataTable: JQueryDataTableApi;
~~~~~~~~~node_modules/@types/datatables.net/index.d.ts:16:5
16 DataTable(opts?: DataTables.Settings): DataTables.Api;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'DataTable' was also declared here.node_modules/datatables.net/types/types.d.ts:127:9 - error TS2717: Subsequent property declarations must have the same type. Property 'dataTable' must be of type 'StaticFunctions', but here has type 'JQueryDataTableJq'.
127 dataTable: JQueryDataTableJq;
~~~~~~~~~node_modules/@types/datatables.net/index.d.ts:17:5
17 dataTable: DataTables.StaticFunctions;
~~~~~~~~~
'dataTable' was also declared here.src/rowsdisplaytable.tsx:24:12 - error TS2345: Argument of type 'JQueryStatic' is not assignable to parameter of type 'JQuery'.
Type 'JQueryStatic' is missing the following properties from type 'JQuery': jquery, add, addBack, addClass, and 137 more.24 dt(window, $);
~src/rowsdisplaytable.tsx:24:12
24 dt(window, $);
~
Did you mean to call this expression?src/rowsdisplaytable.tsx:25:15 - error TS2345: Argument of type 'JQueryStatic' is not assignable to parameter of type 'JQuery'.
25 dtBs4(window, $);
~src/rowsdisplaytable.tsx:25:15
25 dtBs4(window, $);
~
Did you mean to call this expression?src/rowsdisplaytable.tsx:26:19 - error TS2345: Argument of type 'JQueryStatic' is not assignable to parameter of type 'JQuery'.
26 dtReorder(window, $);
~src/rowsdisplaytable.tsx:26:19
26 dtReorder(window, $);
~
Did you mean to call this expression?src/rowsdisplaytable.tsx:27:22 - error TS2345: Argument of type 'JQueryStatic' is not assignable to parameter of type 'JQuery'.
27 dtReorderBs4(window, $);
~src/rowsdisplaytable.tsx:27:22
27 dtReorderBs4(window, $);
~
Did you mean to call this expression?Found 6 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! hiplot@0.0.0 prepublish-ts:tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the hiplot@0.0.0 prepublish-ts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/empty-cache/_logs/2023-10-15T04_14_13_882Z-debug.log
ERROR: "prepublish-ts" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hiplot@0.0.0 prepublish:npm-run-all tsm prepublish-ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hiplot@0.0.0 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/empty-cache/_logs/2023-10-15T04_14_14_242Z-debug.log`
May I ask what npm version would be appropriate for installing the packages and building the .js file successfully? It seems some of the packages are deprecated in package.json. Thank you!!