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.
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm 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.
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm 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
andreact-native-vector-icons
are not imported and used in any file?. Looks likeregisterLogin.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
版权声明:本文标题:javascript - How to remove react-native-elements in react-native project - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744909278a2631813.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论