[英]react-native-elements installation issue with react-native
[英]How to remove react-native-elements in react-native project
我想在我的react-native项目中删除react-native-elements。 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
watchman watch-del-all
。 node_modules
文件夹: rm -rf node_modules && npm install
。 rm -rf /tmp/metro-bundler-cache-*
或npm start -- --reset-cache
。 4.删除急速缓存: rm -rf /tmp/haste-map-react-native-packager-*
。 希望有人帮忙
确保您不在任何文件中导入react-native-elements和react-native-vector-icons(当然您可以在registerLogin.js中导入它)。
即使你删除了你尝试在registerLogin.js中导入该模块。 所以请删除它,然后再试一次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.