Platform: Android
react-native: 0.61.0
react-native-vector-icons: 7.0.0
Error: Unable to resolve module ./toolbar-android from node_modules/react-native-vector-icons/lib/create-icon-set.js
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
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-cachefirst, seems to have done the trick.