node-twitter icon indicating copy to clipboard operation
node-twitter copied to clipboard

Does this work Client Side - Not working with React

Open jamesfriedal opened this issue 7 years ago • 5 comments

Been trying to get this too work with React. It works on my back-end but not in React?

I'm getting a series of errors: "Can't resolve 'fs', Can't resolve 'net'" etc ...

Help would be much appreciated?

jamesfriedal avatar Sep 21 '17 21:09 jamesfriedal

net and fs are node.js modules. fs is filesystem manipulation, that definitely won't work client side, not sure about net.

TakenakaSimon avatar Sep 25 '17 02:09 TakenakaSimon

Any updates on this?

layonthebeech avatar Dec 30 '17 20:12 layonthebeech

Facing this issue too

cogitoergosumsw avatar Jan 18 '18 06:01 cogitoergosumsw

I think this is caused by the request module that only works for node.js environment. https://github.com/desmondmorris/node-twitter/blob/296e82ede50ddace34ad64952fdfacfe8b1c65fc/lib/twitter.js#L9

I'm creating my own fork right now since I also need this library for browser environment.

frizz925 avatar Jan 27 '18 19:01 frizz925

This pacakge is no longer maintained. twitter-lite works both on the client and the server.

dandv avatar Dec 18 '18 21:12 dandv