vector-icons icon indicating copy to clipboard operation
vector-icons copied to clipboard

"Possible Unhandled Promise Rejection" warned by @expo/vector-icons component

Open ESKempken opened this issue 2 years ago • 13 comments

@expo/vector-icons components fail to render icon and throw warning on Android with Expo Go.

Warning

Possible Unhandled Promise Rejection (id: 3):
Error: Module "14" is missing from the asset registry
Error: Module "14" is missing from the asset registry

Usage

import { Ionicons } from '@expo/vector-icons'

...

    <Ionicons
      name="repeat"
      size={26}
    />

Package.json

 "dependencies": {
    "@expo/vector-icons": "^14.0.0",
    "@expo/webpack-config": "~19.0.1",
    "@react-navigation/native": "^6.1.10",
    "@react-navigation/native-stack": "^6.9.18",
    "@rneui/base": "^4.0.0-rc.8",
    "@rneui/themed": "^4.0.0-rc.8",
    "eas-cli": "^5.0.2",
    "expo": "^50.0.6",
    "expo-constants": "~14.4.2",
    "expo-dev-client": "~2.4.8",
    "expo-device": "~5.4.0",
    "expo-notifications": "~0.20.1",
    "expo-splash-screen": "~0.20.5",
    "expo-status-bar": "~1.6.0",
    "expo-updates": "~0.18.12",
    "lodash": "^4.17.21",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.4",
    "react-native-gesture-handler": "~2.14.0",
    "react-native-reanimated": "~3.3.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-ui-lib": "^7.16.0",
    "react-native-web": "~0.19.6"
  },

ESKempken avatar Feb 15 '24 01:02 ESKempken

Same issue

digvalley avatar Feb 16 '24 23:02 digvalley

I'm facing the same issue, and the icons are not showing up on iOS.

victorlucss avatar Feb 18 '24 00:02 victorlucss

npx expo install --fix solved this for me

digvalley avatar Feb 18 '24 07:02 digvalley

I found a solution that worked for me: I installed expo-asset as a dev dependency cause it was failing in fastlane pipeline. I also changed from pnpm back to yarn (deleting the pnpm lock) and it started working (https://github.com/expo/expo/issues/26606)

victorlucss avatar Feb 21 '24 00:02 victorlucss

I've same issue icons are not visible and @victorlucss's solution doesn't work for me

sahilverma-dev avatar Apr 24 '24 06:04 sahilverma-dev

I've same issue icons are not visible and @victorlucss's solution doesn't work for me

same here... just updated to Expo 50 and @expo/vector-icons are NOT showing up on Android (although they do show up on iOS)

joeyhuaa avatar May 17 '24 17:05 joeyhuaa

I've same issue icons are not visible and @victorlucss's solution doesn't work for me

same here... just updated to Expo 50 and @expo/vector-icons are NOT showing up on Android (although they do show up on iOS)

I was using development and when I cleared node modules and android folder and reinstalled it was working.

sahilverma-dev avatar May 18 '24 07:05 sahilverma-dev

I've same issue icons are not visible and @victorlucss's solution doesn't work for me

same here... just updated to Expo 50 and @expo/vector-icons are NOT showing up on Android (although they do show up on iOS)

I was using development and when I cleared node modules and android folder and reinstalled it was working.

Did you run expo prebuild to regenerate the android folder? Because I've reinstalled node modules countless times and i also deleted android folder and still icons do not show up.

joeyhuaa avatar May 19 '24 23:05 joeyhuaa

I've same issue icons are not visible and @victorlucss's solution doesn't work for me

same here... just updated to Expo 50 and @expo/vector-icons are NOT showing up on Android (although they do show up on iOS)

I was using development and when I cleared node modules and android folder and reinstalled it was working.

Did you run expo prebuild to regenerate the android folder? Because I've reinstalled node modules countless times and i also deleted android folder and still icons do not show up.

Yes I deleted the android folder and rebuild it and used development build on my physical device with usb.

sahilverma-dev avatar May 20 '24 06:05 sahilverma-dev

 WARN  Possible Unhandled Promise Rejection (id: 9):
Error: Module "3" is missing from the asset registry
 WARN  Possible Unhandled Promise Rejection (id: 10):
Error: Module "4" is missing from the asset registry

I am also facing the same issue on iOS, icons are simply not laoding. Just updated my vector Icons package and performed the above mentioned solutions. Nothing works though.

agrittiwari avatar Jun 05 '24 04:06 agrittiwari

So I just updated the vector Icons package, added @react-nativeasset-registry: 0.74.83 to resolution, removed node_modules, removed app, rebuild everything with bun and it worked. been stuck at it for a month.

agrittiwari avatar Jun 05 '24 04:06 agrittiwari

So I just updated the vector Icons package, added @react-nativeasset-registry: 0.74.83 to resolution, removed node_modules, removed app, rebuild everything with bun and it worked. been stuck at it for a month.

Was struggling for three days on this, when suddenly my icons stopped appearing and was getting this warning. After trying multiple things for three days, this helped me. The version that was failing for me was @react-nativeasset-registry: 0.75.2. Setting the below and re-building worked for me.

"resolutions": { "@react-native/assets-registry": "0.74.84" }, "overrides": { "@react-native/[email protected]": "@react-native/[email protected]", "@react-native/[email protected]": "@react-native/[email protected]" },

Thank you very much @agrittiwari

VijayPDev avatar Sep 02 '24 14:09 VijayPDev

So I just updated the vector Icons package, added @react-nativeasset-registry: 0.74.83 to resolution, removed node_modules, removed app, rebuild everything with bun and it worked. been stuck at it for a month.

Was struggling for three days on this, when suddenly my icons stopped appearing and was getting this warning. After trying multiple things for three days, this helped me. The version that was failing for me was @react-nativeasset-registry: 0.75.2. Setting the below and re-building worked for me.

"resolutions": { "@react-native/assets-registry": "0.74.84" }, "overrides": { "@react-native/[email protected]": "@react-native/[email protected]", "@react-native/[email protected]": "@react-native/[email protected]" },

Thank you very much @agrittiwari

Our issue with @expo/vector-icons failing to render within an ios build was also solved with this @react-native/assets-registry resolution.

pprocyk avatar Nov 02 '24 04:11 pprocyk