question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with latest version on Android (Crypto package not exist for RN)

See original GitHub issue

So I keep getting following error:

Screenshot 2020-04-10 at 08 20 32

Which can be easily solved by adding react-native-get-random-values package and importing it from index.js of my project.

Thah being said, I don’t think it’s a good practive to let users deal with this kind of thing. Are UUID and node’s crypto packages required to run webview?

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:41
  • Comments:55 (2 by maintainers)

github_iconTop GitHub Comments

35reactions
sebqqcommented, Apr 10, 2020

Try to move import at very top of the index.js file

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module crypto in reactnative
In my case crypto is required by a library and I want to replace it by crypto-js since crypto is not available for...
Read more >
Unable to resolve module crypto
The gist of it is that React Native does not use the Node runtime environment and thus does not have access to specific...
Read more >
FileSystem
If there is no file at this URI, a new one is created. If there is a file at this URI, its contents...
Read more >
react-native-blob-util
A module provides upload, download, and files access API. Supports file stream read/write for process large files.. Latest version: 0.17.0, ...
Read more >
Oracle Enterprise Pack for Eclipse (12.1.3.3.1)
Oracle Enterprise Pack for Eclipse (OEPE) 12.2.1.1.1 is a bug fix release which ... for MacOS on Eclipse Mars are not currently available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found