Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Cryptojs lib not working Angular8 #33

Open
janibekm opened this issue Oct 8, 2019 · 1 comment
Open

Cryptojs lib not working Angular8 #33

janibekm opened this issue Oct 8, 2019 · 1 comment

Comments

@janibekm
Copy link

janibekm commented Oct 8, 2019

Trying to use in angular 8 and here is some issues.

  • library not finding
  • Module not found: Error: Can't resolve 'crypto'
@janibekm
Copy link
Author

Solved!

You can find browser.js
../node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js

then change node key: node:false --> Crypto:true, Stream:true

Screen Shot 2020-06-15 at 15 44 42

For example:
Screen Shot 2020-06-15 at 15 43 22

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