desmondmorris / node-twitter

Client library for the Twitter REST and Streaming API's.
https://www.npmjs.com/package/twitter
MIT License
1.27k stars 237 forks source link

Does this work Client Side - Not working with React #252

Open jamesfriedal opened 7 years ago

jamesfriedal commented 7 years ago

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?

TakenakaSimon commented 7 years ago

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

layonthebeech commented 6 years ago

Any updates on this?

cogitoergosumsw commented 6 years ago

Facing this issue too

frizz925 commented 6 years ago

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.

dandv commented 5 years ago

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