Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Requiring module "NativeModules" which threw an exception #6446

Closed
felemon opened this issue Mar 14, 2016 · 4 comments
Closed
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@felemon
Copy link

felemon commented Mar 14, 2016

Help,
I occured an question 'Uncaught Error: Uncaught Error: Requiring module "NativeModules" which threw an exception' when running movieapp examples of master on windows 7 android genymotion.

qq 20160314150554

The detail log is
Error: Requiring module "Systrace" which threw an exception, stack:
Error: Requiring module "Systrace" which threw an exception
at requireImpl (MoviesApp.android.bundle:62)
at _require (MoviesApp.android.bundle:36)
at MoviesApp.android.bundle:38375
at requireImpl (MoviesApp.android.bundle:76)
at _require (MoviesApp.android.bundle:36)
at MoviesApp.android.bundle:38331
at requireImpl (MoviesApp.android.bundle:76)
at _require (MoviesApp.android.bundle:36)
at MoviesApp.android.bundle:42805
at requireImpl (MoviesApp.android.bundle:76)reactConsoleError @ MoviesApp.android.bundle:45757onError @ MoviesApp.android.bundle:817ErrorUtils.reportFatalError @ MoviesApp.android.bundle:765requireImpl @ MoviesApp.android.bundle:46_require @ MoviesApp.android.bundle:36(anonymous function) @ MoviesApp.android.bundle:53341messageHandlers.executeApplicationScript @ debuggerWorker.js:18onmessage @ debuggerWorker.js:33
debuggerWorker.js:18Uncaught Error: Uncaught Error: Requiring module "NativeModules" which threw an exception

The steps is like the article( https://github.com/facebook/react-native#examples )

  1. git clone (https://github.com/facebook/react-native.git)
  2. cd react-native && npm install
  3. ./gradlew :Examples:Movies:android:app:installDebug
  4. ./packager/packager.sh

And another question is only movieapp was installed after the steps, how to install other examples like 2048, UIExplorer, TicTacToe etc.

@felemon felemon changed the title Uncaught Error: Uncaught Error: Requiring module "NativeModules" which threw an exception Uncaught Error: Requiring module "NativeModules" which threw an exception Mar 14, 2016
@guyca
Copy link

guyca commented Mar 14, 2016

I'm getting the exact same error trying to run my app using the react-native master branch. I followed this link.
stack trace running on Emulator with android M.

I've tried deleting node_modules folder and npm installing again - didn't help.

Edit:
Never mind. running npm install --save github:facebook/react-native#master didn't work but cloning master directly to node_modules and running npm install worked fine.

@felemon
Copy link
Author

felemon commented Mar 18, 2016

@guyca It works, thank you so much.

@jsierles
Copy link
Contributor

@facebook-github-bot answered

@facebook-github-bot
Copy link
Contributor

Closing this issue as @jsierles says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Mar 20, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants