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

Error using cryptr in react-native , getting error crypto does not exist in haste module #12

Closed
ctrljs opened this issue Apr 22, 2019 · 1 comment

Comments

@ctrljs
Copy link

ctrljs commented Apr 22, 2019

error: bundling failed: Error: Unable to resolve module crypto from D:\mobile_new_1503\node_modules\cryptr\index.js: Module crypto does not exist in the Haste module map

@rajat-np
Copy link

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 won't work.

Head over to this for a possible hack solution.

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

3 participants