tradle / react-native-crypto

partial implementation of node's `crypto` for react-native
MIT License
370 stars 84 forks source link

error: bundling failed: Error: EISDIR: illegal operation on a directory #23

Closed eugeneedwardkim closed 5 years ago

eugeneedwardkim commented 6 years ago

I followed the installation directions given for react-native-crypto and update request's crypto calls to: import crypto from 'react-native-crypto';

With that being said, I am running into the error in the title when I try to use the package depending on request.

I'm pretty green in this area, so I could be doing something wrong. Any thoughts?

mvayngrib commented 6 years ago

@eugeneedwardkim not sure what causes your specific error, but generally I would avoid manually modifying code in the dep tree. rn-nodeify makes it so that the request module can use require('crypto'), and it will get mapped to react-native-crypto automatically.