# Unhandled Promise Rejection expo vector-icons

**URL:** <https://forum.codewithmosh.com/t/unhandled-promise-rejection-expo-vector-icons/2860>\
**Category:** React Native\
**Created:** [February 20, 2021, 9:41am UTC](https://forum.codewithmosh.com/t/unhandled-promise-rejection-expo-vector-icons/2860 "2021-02-20T09:41:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbuoncri](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jbuoncri](https://forum.codewithmosh.com/u/jbuoncri)\
**Post date:** [February 20, 2021, 9:41am UTC](https://forum.codewithmosh.com/t/unhandled-promise-rejection-expo-vector-icons/2860/1 "2021-02-20T09:41:39Z")

</div>

Hello,

I’m getting an Unhandled Promise Rejection when I attempt to use the library ‘@expo/vector-icons’, causing the icons to not load. Has anyone ran into this issue? How did you resolve it?

Here’s the warning:

` [Unhandled promise rejection: Error: Directory for 'file:///Users/<USER>/Library/Developer/CoreSimulator/Devices/C490C616-BC39-471F-9882-6F216E8ADD32/data/Containers/Data/Application/6E4FCA03-4015-452A-911E-DDFA135D0370/Library/Caches/ExponentExperienceData/%2540<USER>%252Fdonewithit/ExponentAsset-6a2ddad1092a0a1c326b6d0e738e682b.ttf'doesn't exist. Please make sure directory '/Users/<USER>/Library/Developer/CoreSimulator/Devices/C490C616-BC39-471F-9882-6F216E8ADD32/data/Containers/Data/Application/6E4FCA03-4015-452A-911E-DDFA135D0370/Library/Caches/ExponentExperienceData/%<USER>%2Fdonewithit' exists before calling downloadAsync.]`

---

<div class="post-metadata">

**Author:** ![dpickut](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dpickut](https://forum.codewithmosh.com/u/dpickut)\
**Post date:** [February 21, 2021, 3:37pm UTC](https://forum.codewithmosh.com/t/unhandled-promise-rejection-expo-vector-icons/2860/2 "2021-02-21T15:37:44Z")

</div>

The promise rejection indicates the import of the vector icons library is not working. Check that you’ve get the library added to your project, and verify that your import statement is correct in your component. It should be:  
import { MaterialCommunityIcons } from “@expo/vector-icons”;
