You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Clear watchman watches: watchman watch-del-all
Delete node_modules and run yarn install
Reset Metro's cache: yarn start --reset-cache
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)
The text was updated successfully, but these errors were encountered:
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:
2 | // Twitter API Wrapper
3 | //
The text was updated successfully, but these errors were encountered: