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

" Invalid directory /Users/node_modules/NativeModules" #3

Open
nicholasalanbrown opened this issue Nov 6, 2015 · 5 comments
Open

Comments

@nicholasalanbrown
Copy link

Using React Native 0.14.0, I get the following error:

2015-11-06 16:37:34.882 [error][tid:main][RCTBatchedBridge.m:436] Error while loading: Unable to resolve module NativeModules from /Users/nbrown/Source/<projectname>/react-native/node_modules/react-native-env/index.js: Invalid directory /Users/node_modules/NativeModules

Does this library need to be updated?

@mtford90
Copy link
Contributor

+1

1 similar comment
@RyGuyM
Copy link

RyGuyM commented Nov 17, 2015

+1

@mtford90
Copy link
Contributor

@RyGuyM Fixed in my PR, quick & simple change

@matias-casal
Copy link

@mtford90 i have the same inssue but whit other package, like crypto (tryng to use jwt-simple)
do you have a solution?

@mtford90
Copy link
Contributor

@Casy

Replace all require('NativeModules') with require('react-native').NativeModules in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants