Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it used in react-native? #566

Open
omeriliski opened this issue Dec 20, 2021 · 0 comments
Open

is it used in react-native? #566

omeriliski opened this issue Dec 20, 2021 · 0 comments

Comments

@omeriliski
Copy link

Can i use this package in react-native project?
when i try it i had an error:

error: Error: Unable to resolve module assert from /home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/twit/lib/twitter.js: assert could not be found within the project or in these directories:
node_modules/twit/node_modules
node_modules
If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*
    2 | // Twitter API Wrapper
    3 | //

4 | var assert = require('assert');
| ^
5 | var Promise = require('bluebird');
6 | var request = require('request');
7 | var util = require('util');
at ModuleResolver.resolveDependency (/home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:234:15)
at DependencyGraph.resolveDependency (/home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/node-haste/DependencyGraph.js:413:43)
at Object.resolve (/home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/lib/transformHelpers.js:317:42)
at resolve (/home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/DeltaBundler/traverseDependencies.js:629:33)
at /home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/DeltaBundler/traverseDependencies.js:645:26
at Array.reduce ()
at resolveDependencies (/home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/DeltaBundler/traverseDependencies.js:644:33)
at /home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/DeltaBundler/traverseDependencies.js:329:33
at Generator.next ()
at asyncGeneratorStep (/home/user/Desktop/DCI/REACT_NATIVE/Twitter-Bot/node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:24)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant