admin管理员组

文章数量:1405301

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/ponents/registerLogin/registerLogin.js`: Module `react-native-elements` does not exist in the Haste module map

this method can't solve the problem.

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: 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

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/ponents/registerLogin/registerLogin.js`: Module `react-native-elements` does not exist in the Haste module map

this method can't solve the problem.

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: 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

Share asked Jun 22, 2018 at 10:33 TMDTMD 3354 silver badges15 bronze badges 2
  • 2 Have you made sure that react-native-elements and react-native-vector-icons are not imported and used in any file?. Looks like registerLogin.js has reference to these modules.yarn remove <package> will only update package.json and yarn.lock file, not your source files. Check your source files. – Ravi Raj Commented Jun 22, 2018 at 11:16
  • thanks ~ , I just make a simple mistake

    本文标签: javascriptHow to remove reactnativeelements in reactnative projectStack Overflow