Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Cant resolve 'bs58' in... #121

Open
gkucmierz opened this issue Feb 11, 2017 · 2 comments
Open

Cant resolve 'bs58' in... #121

gkucmierz opened this issue Feb 11, 2017 · 2 comments

Comments

@gkucmierz
Copy link

ERROR in ./~/bitcore-lib/index.js
Module not found: Error: Can't resolve 'bs58' in '/Users/gkucmierz/learn/coin-tools/node_modules/bitcore-lib'
 @ ./~/bitcore-lib/index.js 63:20-35
 @ ./src/app/sign-message/sign-message.component.ts
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

I am trying to use it in angular 2 app.

const {PrivateKey} = require('bitcore-lib');
const Message = require('bitcore-message');
@gkucmierz
Copy link
Author

After I added dependency to my package.json:
"bs58": "^4.0.0",
it solved the problem partially.

Right now there is a problem with crypto: #122

@gkucmierz
Copy link
Author

I think the issue is that this library is not working with webpack.
It cant inject dependencies correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant