Reputation: 325
I want to remove react-native-elements in my react-native project.
yarn remove react-native-elements
yarn remove react-native-vector-icons
when I remove this module and its dependence, I got an error .
error: bundling failed: Error: Unable to resolve module `react-native-elements` from `/Users/assetfun/Desktop/amigo/src/components/registerLogin/registerLogin.js`: Module `react-native-elements` does not exist in the Haste module map
this method can't solve the problem.
watchman watch-del-all
.node_modules
folder: rm -rf node_modules && npm install
.rm -rf /tmp/metro-bundler-cache-*
or npm start -- --reset-cache
. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*
.want someone help
Upvotes: 4
Views: 6581
Reputation: 181
Even you removed that you try to import that module in your registerLogin.js . So please remove that and try again.
Upvotes: 1
Reputation: 1431
Ensure you don't import react-native-elements and react-native-vector-icons in any file (surely you import it in registerLogin.js).
Upvotes: 3