[英]How to remove react-native-elements in react-native project
I want to remove react-native-elements in my react-native project. 我想在我的react-native项目中删除react-native-elements。
yarn remove react-native-elements yarn remove react-native-vector-icons
when I remove this module and its dependence, I got an error . yarn remove react-native-elements yarn remove react-native-vector-icons
当我删除这个模块及其依赖时,我收到了一个错误。
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
. watchman watch-del-all
。 node_modules
folder: rm -rf node_modules && npm install
. node_modules
文件夹: rm -rf node_modules && npm install
。 rm -rf /tmp/metro-bundler-cache-*
or npm start -- --reset-cache
. rm -rf /tmp/metro-bundler-cache-*
或npm start -- --reset-cache
。 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*
. rm -rf /tmp/haste-map-react-native-packager-*
。 want someone help 希望有人帮忙
确保您不在任何文件中导入react-native-elements和react-native-vector-icons(当然您可以在registerLogin.js中导入它)。
Even you removed that you try to import that module in your registerLogin.js . 即使你删除了你尝试在registerLogin.js中导入该模块。 So please remove that and try again.
所以请删除它,然后再试一次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.