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

Does not work for https-browserify and cipher-base #1

Open
vietnamese-chowder opened this issue May 4, 2022 · 0 comments
Open

Does not work for https-browserify and cipher-base #1

vietnamese-chowder opened this issue May 4, 2022 · 0 comments

Comments

@vietnamese-chowder
Copy link

I'm running

yarn rn-nodeify --install 'crypto,os,buffer,react-native-randombytes,vm,stream,http,https,url,net,fs,zlib' --hack --yarn

and I still get "Unable to resolve module http" for https-browserify, "Unable to resolve module stream" for cipher-base, and "Unable to resolve module net" for https-proxy-agent, respectively. I'm guessing these 3 packages are not in the list of packages "known to make react native choke"?

They work after manually adding "react-native": { "http": "@tradle/react-native-http" }, "react-native": { "stream": "stream-browserify" }, and "react-native": { "net": "react-native-tcp-socket" } to their respective package.json's

Well, actually, these are the most common modules where this happens. There are also other modules where it happens sometimes, like react-native-http and winston, it's a little different every time I delete node_modules and re-run yarn and ./postinstall.sh. I'm not sure what to attribute this randomness to.

@lirimkrosa lirimkrosa reopened this May 7, 2024
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

2 participants