question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Requiring unknown module "react-native-vector-icons/MaterialIcons"

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
obladorcommented, Feb 29, 2016

That’s an npm/packager issue for sure. Close all terminal windows, delete your node_modules folder, run npm cache clean and npm install. That should fix it 😃

2reactions
KarandikarMihircommented, Mar 10, 2016

I don’t know exactly but I think npm cache clean and npm 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found