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

With SystemJs and Angular2 #221

Closed ayyash closed 7 years ago

ayyash commented 7 years ago

I tried the simple require statement adding twitter to systemjs like this 'twitter': 'npm:twitter/lib/twitter.js',

Then in typescript const Twitter = require('twitter');

The twitter library itself loads but I instantly face problems with sub require statements, I'm not sure I am getting this right, isn't the require statement supposed to find the file on its own? do I need to add all sub libraries explicitly to my systemjs configuration? Any pointers would be appreciated.

ayyash commented 7 years ago

Oh wait, is this library supposed to be used on server only? I just realized it's called "node-twitter" :/

ayyash commented 7 years ago

darn, this is embarrassing