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

Unable to resolve module crypto react-native #311

Open
ease-space opened this issue Jul 30, 2020 · 5 comments
Open

Unable to resolve module crypto react-native #311

ease-space opened this issue Jul 30, 2020 · 5 comments

Comments

@ease-space
Copy link

Unable to resolve module crypto react-native v4.0.0

@camin-mccluskey
Copy link

Try this

Essentially add
import 'react-native-get-random-values';

before your import of crypto-js

@RnbWd
Copy link

RnbWd commented Sep 30, 2020

this library does work with react-native prior to v4.0, so v3.x works.

@entronad
Copy link
Contributor

entronad commented Oct 4, 2020

If the issues caused by secure radom of crypto-js 4.0 bother you, such as too large bundle, unavalible in React Native... Maybe you can try crypto-es .

We merged all updates of crypto-js 4.0 except the secure radom.

@stonebinox
Copy link

this

@camin-mccluskey unfortunately, this didn't work for me. I still see the same error.

@vincicat
Copy link

crypto-js now works on RN 0.64, see #259 (comment) for detail

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

6 participants