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/react-native-google-signin #7

Closed
seanscal opened this issue Nov 12, 2015 · 8 comments
Closed

Comments

@seanscal
Copy link

On this line I get the above error:
var GoogleSignin = require('react-native-google-signin');

It might have just been something I did, any help is appreciated

@seanscal
Copy link
Author

seems to be a react-native 0.14 problem -- facebook/react-native#3817

@devfd
Copy link
Contributor

devfd commented Nov 12, 2015

have a look at the sample app. it has been updated with RN 0.14.2 and everything work just fine

@devfd devfd closed this as completed Nov 12, 2015
@haydenth
Copy link

Still not having luck using the example here verbatim: https://github.com/apptailor/react-native-google-signin/blob/master/example/index.ios.js

Error:
Invalid directory /Users/node_modules/react-native-google-signin

Let me know if there is info I can provide to help debug!

@haydenth
Copy link

Particularly with 14.2, I am getting this in the bundling step. When I run in XCode, it fires up a shell script and runs this:

Thomass-Air:blueprintNative tom$ react-native bundle --entry-file index.ios.js --platform ios --dev true --bundle-output /Users/tom/Library/Developer/Xcode/DerivedData/blueprintNative-hhiicwesoinmjlejjoukzhrmkivu/Build/Products/Debug-iphonesimulator/blueprintNative.app/main.jsbundle --assets-dest /Users/tom/Library/Developer/Xcode/DerivedData/blueprintNative-hhiicwesoinmjlejjoukzhrmkivu/Build/Products/Debug-iphonesimulator/blueprintNative.app

bundle: Created ReactPackager
uncaught error Error: UnableToResolveError: Unable to resolve module react-native-google-signin from /Users/tom/projects/blueprintNative/index.ios.js: Invalid directory /Users/node_modules/react-native-google-signin
    at /Users/tom/projects/blueprintNative/node_modules/react-native/packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js:323:15
    at tryCallOne (/Users/tom/projects/blueprintNative/node_modules/promise/lib/core.js:37:12)
    at /Users/tom/projects/blueprintNative/node_modules/promise/lib/core.js:103:15
    at flush (/Users/tom/projects/blueprintNative/node_modules/asap/raw.js:50:29)
    at doNTCallback0 (node.js:428:9)
    at process._tickCallback (node.js:357:13)
See logs /var/folders/_v/qdpbdpb53flbftd8q_095_cr0000gn/T/react-packager.log
    at SocketClient._handleMessage (/Users/tom/projects/blueprintNative/node_modules/react-native/packager/react-packager/src/SocketInterface/SocketClient.js:131:23)
    at BunserBuf.<anonymous> (/Users/tom/projects/blueprintNative/node_modules/react-native/packager/react-packager/src/SocketInterface/SocketClient.js:52:42)
    at emitOne (events.js:77:13)
    at BunserBuf.emit (events.js:169:7)
    at BunserBuf.process (/Users/tom/projects/blueprintNative/node_modules/bser/index.js:289:10)
    at /Users/tom/projects/blueprintNative/node_modules/bser/index.js:244:12
    at doNTCallback0 (node.js:428:9)
    at process._tickCallback (node.js:357:13)

@yelled3
Copy link

yelled3 commented Nov 26, 2015

I'm using react-native v0.1.5 with react-native-google-signin v0.2.2
and I'm getting the same issue as @haydenth
uncaught error Error: UnableToResolveError: Unable to resolve module react-native-google-signin

I'm certain this is not related to react-native-google-signin config - since rolling back to 0.1.4 works just fine.

please reopen the issue until it's solved
@Apptailor @devfd /cc

@devfd devfd reopened this Nov 26, 2015
@devfd
Copy link
Contributor

devfd commented Nov 26, 2015

my bad. I forgot to update package.json. @haydenth please update to v0.2.3

@devfd devfd closed this as completed Nov 26, 2015
@yelled3
Copy link

yelled3 commented Nov 26, 2015

@devfd works great - thanks!

@haydenth
Copy link

Cool, I'm back in business thanks @devfd

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