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)

Most upvoted comments

Use npm start -- --reset-cache instead of npm start --reset-cache

The 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-cache instead of npm start --reset-cache

yarn add @react-native-community/toolbar-android and pod install worked for me

I’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_modules remove v 6.7.0 with "react-native-vector-icons": "^7.0.0" in package.json npm i react-native start --reset-cache

thư viện rn nào dùng vector icon chưa lên 7.0 chết hết a oi