-
Notifications
You must be signed in to change notification settings - Fork 228
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' #123
Comments
According to an item on stackoverflow. The crypto module is a built-in Node module; React Native runs JS on JavaScriptCore (when on the device or simulator) and on Chrome itself (when using Chrome debugging), so modules that depend on built-in Node.js modules cannot work. See the JavaScript Runtime section of the React Native docs for more info. There are two solutions.
https://hackernoon.com/using-core-node-js-modules-in-react-native-apps-64acd4d07140 But as you’ll see, this is not straightforward.
|
Hey,
I am facing this issue,
error: bundling failed: Error: Unable to resolve module "crypto" from "..\myProject\node_modules\speakeasy\index.js": Module "crypto" does not exist in the Haste module map
I am using React Native v0.57.7
Any Suggestions Please ?
The text was updated successfully, but these errors were encountered: