WavesGUI error TS2345

Hi there,

I’m trying to compile the WavesGUI and get the following error:

[email protected] postinstall /home/zener/git/WavesGUI
sh scripts/postinstall.sh

run post install script
compile typescript
data-service/store.ts:49:32 - error TS2345: Argument of type ‘<T, U>(obj1: Record<string, T>, obj2: Record<string, U>) => boolean’ is not assignable to parameter of type ‘(a: T, b: T) => boolean’.
Types of parameters ‘obj1’ and ‘a’ are incompatible.
Type ‘T’ is not assignable to type ‘Record<string, unknown>’.

49 list => differenceWith(eqProps(idKey), list, toRemoveContainer.map(prop(‘data’))) as any,

Found 1 error.

npm ERR! Linux 4.4.0-145-generic
npm ERR! argv “/home/zener/.nvm/versions/node/v4.8.3/bin/node” “/home/zener/.nvm/versions/node/v4.8.3/bin/npm” “i”
npm ERR! node v4.8.3
npm ERR! npm v2.15.11
npm ERR! [email protected] postinstall: sh scripts/postinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script ‘sh scripts/postinstall.sh’.
npm ERR! This is most likely a problem with the waves-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh scripts/postinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs waves-client
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls waves-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/zener/git/WavesGUI/npm-debug.log

Any help would be appreciated.


Solved. I managed to build it in a docker image called waves-explorer-ds.