React-native-vector-icons: Unable to resolve module toolbar-android

Created on 15 Jul 2020  路  9Comments  路  Source: oblador/react-native-vector-icons

Environment

Platform: Android
react-native: 0.61.0
react-native-vector-icons: 7.0.0

Description

Error: Unable to resolve module ./toolbar-android from node_modules/react-native-vector-icons/lib/create-icon-set.js

Most helpful comment

For me the problem appeared when going from 6.6.0 -> 7.0.0.

Still trying to resolve it.

RN: 0.62.2
Node: 12.16.3
OS: Windows 10 64 bit Pro

Also tested it on Mac and it worked fine there.

Edit:
Running react-native start --reset-cache first, seems to have done the trick.

All 9 comments

I've got the same error, did you find a solution ?

For me the issue appeared when using 6.7.0. Upgrading to 7.0.0 did the trick for me.

Did you try to pin 6.6.0?

Finally found a solution.
I'm using 6.7.0, and I just download @react-native-community/toolbar-android. That did the trick.
I know it's not the perfect solution, but a workaround. My iOS app doesn't use the toolbar, but she work anymore.

I was with the same error. The problem solve when I updated to version 7.0.0

For me the problem appeared when going from 6.6.0 -> 7.0.0.

Still trying to resolve it.

RN: 0.62.2
Node: 12.16.3
OS: Windows 10 64 bit Pro

Also tested it on Mac and it worked fine there.

Edit:
Running react-native start --reset-cache first, seems to have done the trick.

Is your environment in MacOS is like Windows?

I'm using MacOS too, I've never tested my project in other OS.

My environment:
RN: 0.63.0.
Node: 10.16.3
OS: MacOS Catalina v10.15.5

Same issue with 7.0.0 RN 0.63.2

@amerllica I solved the problem updating to v7.x.x. It's worked well for me. Thanks for mentioning me.

@lamson-dev , @developerantoniosousa , @vishwanath-awate , @RosenTomov , @AlessioCamm , @jsbeckr , @saxenanickk

At last, the issue is fixed on version "7.1.0", and there is no need to install @react-native-community/toolbar-android.

More explanation is on this StackOverflow post

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tharrington picture tharrington  路  4Comments

mahdidavoodi7 picture mahdidavoodi7  路  3Comments

peacechen picture peacechen  路  3Comments

facuescobar picture facuescobar  路  3Comments

toddmetheny picture toddmetheny  路  4Comments