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

Package cannot be used with Angular #10

Closed
Aniket-Engg opened this issue Jun 13, 2019 · 3 comments
Closed

Package cannot be used with Angular #10

Aniket-Engg opened this issue Jun 13, 2019 · 3 comments

Comments

@Aniket-Engg
Copy link

Not able to use this package in Angular because of this : angular/angular-cli#1548
And they explain this here: angular/angular-cli#1548 (comment)

Error I am getting is:

ERROR in ./node_modules/@audius/hedgehog/src/authentication.js
Module not found: Error: Can't resolve 'crypto' in '/node_modules/@audius/hedgehog/src'
ERROR in ./node_modules/ethereumjs-wallet/index.js
Module not found: Error: Can't resolve 'crypto' in '/node_modules/ethereumjs-wallet'
ERROR in ./node_modules/hdkey/lib/hdkey.js
Module not found: Error: Can't resolve 'crypto' in '/node_modules/hdkey/lib'
ERROR in ./node_modules/cipher-base/index.js
Module not found: Error: Can't resolve 'stream' in '/node_modules/cipher-base'
ERROR in ./node_modules/hash-base/index.js
Module not found: Error: Can't resolve 'stream' in '/node_modules/hash-base'
ERROR in ./node_modules/keccak/lib/api/keccak.js
Module not found: Error: Can't resolve 'stream' in '/node_modules/keccak/lib/api'
ERROR in ./node_modules/keccak/lib/api/shake.js
Module not found: Error: Can't resolve 'stream' in '/node_modules/keccak/lib/api'
@dmanjunath
Copy link
Contributor

dmanjunath commented Jun 18, 2019

Thanks for bringing up this issue @Aniket-Engg. From the attached thread, I'm not sure how much Hedgehog can do to support this intentional limitation in the angular-cli. If you have a solution please submit a PR!

@Aniket-Engg
Copy link
Author

I either don't see a solution to implement in hedgehog. Probably we can use the substitute of packages which is not supported by angular or can mention a way around in documentation to make it easy for coming developers.

@dmanjunath
Copy link
Contributor

I'm not sure this is something we can fix on the hedgehog side if angular is blocking certain packages. I'm going to close this because I'm not sure there's really anything we can do here

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

2 participants