I'm working on a React-Native Expo project looking to scrape Twitter profiles from usernames.
I get the following errors:
Unable to resolve module crypto from /Users/mollycantillon/union/union/node_modules/twitter-api-sdk/dist/OAuth2User.js: crypto could not be found within the project or in these directories:
Unable to resolve module events from /Users/mollycantillon/union/union/node_modules/twitter-api-v2/dist/stream/TweetStream.js: events could not be found within the project or in these directories:
and more with https, ids ....
I've tried npm i, rm -rf node_modules, clearing cache hundreds of times. Always an issue with a module, even after running npm i -g or npm i --save-dev for every single one of these packages.
Not sure if twitter-api-v2 is deprecated, its an issue with firebase or some other typescript issue?