[Android] Requiring unknown module "react-native-vector-icons/MaterialIcons"
See original GitHub issueI followed every step in the installation guide. But I keep getting this error. I have already read #32 and could not solve the issue. I also tried to change MaterialIcons to FontAwesome but no joy.
Usage in my file:
var Icon = require('react-native-vector-icons/MaterialIcons');
What am I missing?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error: Requiring unknown module "undefined". If you are sure ...
Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro. You may also want to run yarn or...
Read more >Requiring unknown module "499" error in React Native
I am getting this error. I have tried running npm install multiple times but this is still there, how to get this worked?...
Read more >I got this error message "Requiring unknown module "ws""
I got this error message "Requiring unknown module "ws"". Nicolas Charpentier. Moved from https://github.com/facebook/react-native/issues/9559.
Read more >[Solved]-Requiring unknown module "undefined"-React Native
Coding example for the question Requiring unknown module "undefined"-React Native.
Read more >Build error when adding React Native Paper : r/reactnative
After these commands, my app is unable to build and I get a "Requiring unknown module "1090".If you are sure the module is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s an npm/packager issue for sure. Close all terminal windows, delete your node_modules folder, run
npm cache clean
andnpm install
. That should fix it 😃I don’t know exactly but I think
npm cache clean
andnpm install
fixed it. Funny thing is that this error occurs only in case of requiring react-native-vector-icons. Other packages never seem to throw the same error. Anyways, thanks for the help.