Problem during installation
Closed this issue · 1 comments
➜ js-crypto-rsa yarn build
yarn run v1.22.5
$ rm -rf ./dist && yarn babel && yarn webpack:prod
$ cross-env NODE_ENV=production tsc --build ./tsconfig.json
src/oaep.ts:5:21 - error TS2307: Cannot find module 'js-crypto-hash' or its corresponding type declarations.
5 import jschash from 'js-crypto-hash';
~~~~~~~~~~~~~~~~
src/oaep.ts:6:20 - error TS2307: Cannot find module 'js-crypto-random' or its corresponding type declarations.
6 import random from 'js-crypto-random';
~~~~~~~~~~~~~~~~~~
src/oaep.ts:119:33 - error TS7006: Parameter 'elem' implicitly has an 'any' type.
119 const maskedSeed = seed.map( (elem, idx) => 0xFF & (elem ^ seedMask[idx]));
~~~~
src/oaep.ts:119:39 - error TS7006: Parameter 'idx' implicitly has an 'any' type.
119 const maskedSeed = seed.map( (elem, idx) => 0xFF & (elem ^ seedMask[idx]));
~~~
src/nodeapi.ts:6:19 - error TS2307: Cannot find module 'js-crypto-key-utils' or its corresponding type declarations.
6 import {Key} from 'js-crypto-key-utils';
~~~~~~~~~~~~~~~~~~~~~
src/rsa.ts:5:23 - error TS2307: Cannot find module 'js-crypto-env' or its corresponding type declarations.
5 import * as util from 'js-crypto-env';
~~~~~~~~~~~~~~~
Found 6 errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
You just had to run npm install before building the package. To put in the doc...