Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug) utils requires ethers but it's not in your dependencies #453

Open
elmariachi111 opened this issue Mar 3, 2021 · 0 comments
Open

Comments

@elmariachi111
Copy link

Describe the bug
When I try to initialize the SDK, I'm seeing

Error: Cannot find module 'ethers/lib/utils'
Require stack:
- /home/stadolf/work/univax/node_modules/.pnpm/[email protected]/node_modules/jolocom-lib/js/utils/helper.js
...

in your helper.ts you import from ethers (https://github.com/jolocom/jolocom-lib/blob/develop/ts/utils/helper.ts#L7) but your package.json requires etherumjs-util instead (https://github.com/jolocom/jolocom-lib/blob/develop/package.json#L80). That library contains the needed code but you require the "wrong" library. When I install ethers on my side it runs well. Think you only have to import your needed helpers from ethereumjs-util instead.

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

No branches or pull requests

1 participant