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

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

Open cyberonics-jasim opened this issue 3 years ago • 8 comments

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

cyberonics-jasim avatar Jun 24 '22 10:06 cyberonics-jasim

Facing same issue

Abhishek2250 avatar Jun 27 '22 08:06 Abhishek2250

same

RnbWd avatar Jun 27 '22 10:06 RnbWd

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

p-sebastian avatar Jun 27 '22 20:06 p-sebastian

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

emiliofonseca avatar Jun 27 '22 20:06 emiliofonseca

Facing the Same issue since Upgrade of Packages

usamadevops avatar Jun 28 '22 08:06 usamadevops

same

andressibaja10 avatar Jun 28 '22 16:06 andressibaja10

npm install [email protected] --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

unicornRainbows avatar Jun 29 '22 12:06 unicornRainbows

same issue

sanju280696 avatar Jul 08 '22 08:07 sanju280696

Alguem tem outra solução?

alelsantos avatar Sep 24 '22 18:09 alelsantos

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

Nziranziza avatar Oct 11 '22 16:10 Nziranziza

[email protected] --save

it's working thanks a lot :)

htsoftatico avatar Nov 22 '22 13:11 htsoftatico

same issue

emami7495 avatar Dec 06 '22 08:12 emami7495

npm install [email protected] --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!

levanthuanmy avatar Dec 08 '22 02:12 levanthuanmy

same issue on Android

fredcm avatar Jan 07 '23 00:01 fredcm

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

VivekkChudasama avatar Jan 26 '23 09:01 VivekkChudasama

Unfortunately upgrading to [email protected] has not fixed the issue for me (React native 0.71.3).

wavesandwaves avatar Feb 16 '23 18:02 wavesandwaves

npm install [email protected] --save Unfortunately upgrading to [email protected] 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 avatar Feb 24 '23 18:02 hichemBAALI

Unfortunately upgrading to [email protected] 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
}

hichemBAALI avatar Feb 24 '23 21:02 hichemBAALI

I got the same issue react native 0.71.14

LeNgoc82 avatar Oct 18 '23 14:10 LeNgoc82

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

johnf avatar Oct 28 '23 22:10 johnf