oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.4k stars 2.12k forks source link

warn Package react-native-vector-icons has been ignored because it contains invalid configuration. Reason: "dependency.assets" is not allowed #1443

Closed cyberonics-jasim closed 11 months ago

cyberonics-jasim commented 2 years ago

warn Package react-native-vector-icons has been ignored because it contains invalid configuration. Reason: "dependency.assets" is not allowed RN version : 0.69

Abhishek2250 commented 2 years ago

Facing same issue

RnbWd commented 2 years ago

same

p-sebastian commented 2 years ago

@cyberonics-jasim is the app not running at all for you? or can you use the library normally with the warning?

emiliofonseca commented 2 years ago

Here I can't use the library, it doesn't load the icons

usamadevops commented 2 years ago

Facing the Same issue since Upgrade of Packages

andressibaja10 commented 2 years ago

same

unicornRainbows commented 2 years ago

npm install react-native-vector-icons@9.2.0 --save

I think that should help, I see the last commit has a change there for it. Make sure to rebuild your project. ❤️

And

cd iOS pod install

sanju280696 commented 2 years ago

same issue

alelsantos commented 2 years ago

Alguem tem outra solução?

Nziranziza commented 1 year ago

I have similar issue as well, working fine on ios but not android

htsoftatico commented 1 year ago

eact-native-vector-icons@9.2.0 --save

it's working thanks a lot :)

emami7495 commented 1 year ago

same issue

levanthuanmy commented 1 year ago

npm install react-native-vector-icons@9.2.0 --save

I think that should help, I see the last commit has a change there for it. Make sure to rebuild your project. ❤️

And

cd iOS pod install

thanks a lot!

fredcm commented 1 year ago

same issue on Android

VivekkChudasama commented 1 year ago

Same issue in Android . "react": "17.0.2", "react-native": "^0.71.1",

wavesandwaves commented 1 year ago

Unfortunately upgrading to react-native-vector-icons@9.2.0 has not fixed the issue for me (React native 0.71.3).

hichemBAALI commented 1 year ago

npm install react-native-vector-icons@9.2.0 --save Unfortunately upgrading to react-native-vector-icons@9.2.0 has not fixed the issue for me (React native 0.71.3).

I am also on (React native 0.71.3) and I am still stuck at the same problem. Did you manage to find a solution ?

hichemBAALI commented 1 year ago

Unfortunately upgrading to react-native-vector-icons@9.2.0 has not fixed the issue for me (React native 0.71.3).

I am also on (React native 0.71.3) and I am still stuck at the same problem. Did you manage to find a solution ?

Actually, the I could avoid this error by updating my react-native-config.js file. I removed all the props related to vector icons like so:

const VECTOR_ICONS_FONTS_PATH =
  './node_modules/react-native-vector-icons/Fonts'
const VECTOR_FONTS = []
module.exports = {
  project: {
    ios: {},
    android: {},
  },
  // REMOVE FROME HERE
  assets: ['./assets/fonts'],
  dependencies: {
    // Disable auto linking for `react-native-vector-icons` and link
    // the required fonts manually to avoid duplicate resources issue in iOS.
    'react-native-vector-icons': {
      platforms: {
        ios: null,
        android: null,
      },
      assets: VECTOR_FONTS.map(
        (font) => VECTOR_ICONS_FONTS_PATH + '/' + font,
      ),
    },
  },
  // TO HERE
}
LeNgoc82 commented 11 months ago

I got the same issue react native 0.71.14

johnf commented 11 months ago

If you are experiencing this, you have old code in your react-native-config.js likely from an RN upgrade. Follow the README for the latest instructions