question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve "react-native-vector-icons/FontAwesome" using @expo/vector-icons ^10.0.0

See original GitHub issue

We have upgraded our expo project to expo SDK 34, which includes an upgrade of @expo/vector-icons from ^9.0.0 to ^10.0.0.

@expo/vector icons has since removed the dependency they had on react-native-vector-icons and as a result react-native-elements produces the following error:

Unable to resolve "react-native-vector-icons/FontAwesome" from "node_modules\react-native-elements\src\social\SocialIcon.js"

image

Would the suggestion be to now install react-native-vector-icons as a standalone dependency?

This is also no longer correct as a result of the above:

image

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

7reactions
iRoachiecommented, Aug 1, 2019

This is a common problem we have with expo users. Adding react-native-vector-icons should fix this.

npm i react-native-vector-icons --save
1reaction
5ervantcommented, Oct 13, 2019

This is a common problem we have with expo users. Adding react-native-vector-icons should fix this.

npm i react-native-vector-icons --save

Did not work… 😦 https://github.com/react-native-elements/react-native-elements/issues/2127

Read more comments on GitHub >

github_iconTop Results From Across the Web

Native-React + Expo: Unable to resolve "@expo/vector-icons ...
It's not necessary to load the Icon library like that to be able to use Ionicons in expo, just install the package and...
Read more >
@expo/vector-icons - npm
Built-in support for popular icon fonts and the tooling to create your own Icon components from your font and glyph map.
Read more >
Icons - Expo Documentation
You can create an Icon Button using the Font.Button syntax where the Font is the icon set that you import from @expo/vector-icons ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found