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.31k stars 2.12k forks source link

Failed to compile #1438

Closed julianueno closed 11 months ago

julianueno commented 2 years ago

Hi,

I've been runing into an issue that I've seen before in the forum, where I get an error after importing the Icons library in the app.

The error I get is the following. "Non of these files exist: *node_modules\react-native-vector-icons\lib\create-icon-set(.native.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|native.tsx|.tsx). Here is an image:

Screenshot_1

I've tried to reset the cache with the proposed command: npx react-native start --reset-cache

Screenshot_2

But then I get the same error with longer explanation (I think)

"dependencies": { "react": "17.0.2", "react-native": "0.68.2", "react-native-vector-icons": "^9.1.0"

Any ideas? Thank you!

navjotsing-dhanawat commented 2 years ago

It seems it is cache issue. I have fixed this by running below command:

react-native start --reset-cache