airgap-it / airgap-vault

The AirGap Vault is installed on a spare smartphone that has no connection to any network, thus it is air gapped. This app handles the private key.
MIT License
396 stars 110 forks source link

[ERROR] Depndency issue while trying to build from local coin-lib #26

Closed vikramIde closed 4 years ago

vikramIde commented 4 years ago

Hi guys,

So to test some changes in the coin-lib, I added it in the vault's package.json, file

    "airgap-coin-lib": "file://Users/xyz/Documents/airgap/airgap-coin-lib",

Then did it as npm install

But when I tried to build the vault npm run build I am getting issues with two packages mostly

Module not found: Error: Can't resolve 'crypto' in '/Users/xyz/Documents/airgap/airgap-coin-lib/dist/dependencies/src/pbkdf2-3.0.17'

ERROR in ../airgap-coin-lib/dist/dependencies/src/tweetnacl-1.0.1/nacl.js
Module not found: Error: Can't resolve 'crypto' in '/Users/xyz/Documents/airgap/airgap-coin-lib/dist/dependencies/src/tweetnacl-1.0.1'

ERROR in ../airgap-coin-lib/dist/dependencies/src/cipher-base-1.0.4/index.js
Module not found: Error: Can't resolve 'stream' in '/Users/xyz/Documents/airgap/airgap-coin-lib/dist/dependencies/src/cipher-base-1.0.4'

Any suggestion why this could be happening ?

Please not I took a clean pull of the develop branch of both vault and lib

vikramIde commented 4 years ago

Resolved