Closed
Description
Hi
I'm working on a project which needs tcp socket , and when i tried to use this library , i get the error mentioned in the title ! I know its a stream /rn-nodeify error , but while its a dependency of native-tcp , I posted this issue here , is there anything i can do to fix this one ?
react-native @0.41.2
react-native-net @3.2.1
rn-nodeify @7.0.1
Activity
ArcanoxDragon commentedon Mar 30, 2017
I'm getting this when trying to nodeify
zlib
forreact-native
as well. I haven't been able to find any information anywhere on this issue.ArcanoxDragon commentedon Mar 30, 2017
I found a temporary workaround for this issue here.
nisargrthakkar commentedon May 3, 2017
Hello @omidnavi @briman0094
I have also faced this error, after some workaround, I tried below steps and worked for me. Please check if this can help you as well.
npm install react-native-tcp@3.1.0 --save
(and other command as specified, only thing is to use 3.1.0 version )zelll commentedon May 19, 2017
Try this:
viethaca commentedon Jun 20, 2017
@zelll it's worked for me when run debug.
When run release android, app has crashed
scriptfans commentedon Aug 30, 2017
same problem, how to fix it? thanks.
omidnavy commentedon Aug 30, 2017
@scriptfans check this answer :
if didnt work , check this one:
scriptfans commentedon Aug 31, 2017
@omidnavi Thanks very much. I solved it in another way, we can install the github version rn-nodeify to fix it:
"devDependencies": { "rn-nodeify": "mvayngrib/rn-nodeify" }
shiyunsheng commentedon Jan 18, 2018
@viethaca please help me
it's worked for me when run debug.
When run release android, app has crashed
How did you solve it?
shiyunsheng commentedon Jan 18, 2018
use the latest version .it's ok
npm install react-native-tcp --save
npm install --save rn-nodeify (no dev)
node_modules/.bin/rn-nodeify --install stream,process,util --hack
npm install readable-stream stream-browserify --save
viethaca commentedon Jan 18, 2018
@shiyunsheng i use rn 0.48.4 and react-native-tcp 3.3.0 and in package.json add
"scripts":{
"postinstall": "rn-nodeify --install stream,process,util --hack",
}
uriva commentedon Jun 28, 2018
All the above not working for me. RN 0.55.4
shiyunsheng commentedon Jul 7, 2018
@uriva use npm install readable-stream@2.2.8 stream-browserify@2.0.1 --save