react-native-vector-icons: [v7.0.0] Error: Unable to resolve module `./toolbar-android` from `node_modules/react-native-vector-icons/dist/lib/create-icon-set.js`
After upgrading to the new version 7.0.0, running iOS failed at:
Error: Unable to resolve module `./toolbar-android` from `node_modules/react-native-vector-icons/dist/lib/create-icon-set.js`
I’m trying to clean with
watchman watch-del-all
rm -rf node_modules/
rm -rf ios/Pods/
npm start --reset-cache
Installing the @react-native-community/toolbar-android package not solves the error yet.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 22
- Comments: 22 (1 by maintainers)
Use
npm start -- --reset-cacheinstead ofnpm start --reset-cacheThe double dash in the middle tells NPM to pass on the cli args to the command executed. This solved the issue for me.
@jdegger Thank you! Resolved: use
npm start -- --reset-cacheinstead ofnpm start --reset-cacheyarn add @react-native-community/toolbar-androidandpod installworked for meI’m seeing the same issue with v6.7.0
same issue on Android
This is actually bug in v 6.7.0, me after use V 7.0.0 is running normaly. But you must have a little bit effort to do this,
rm -rf node_modulesremove v 6.7.0 with"react-native-vector-icons": "^7.0.0"in package.jsonnpm ireact-native start --reset-cachethư viện rn nào dùng vector icon chưa lên 7.0 chết hết a oi