Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Requiring unknown module #5

Closed
tnguyen42 opened this issue Aug 9, 2015 · 8 comments
Closed

Requiring unknown module #5

tnguyen42 opened this issue Aug 9, 2015 · 8 comments

Comments

@tnguyen42
Copy link

Hi,

After updating the package to 0.0.3, I got the same error than the one I got before with Login:

image

This also happens with AccessToken from Core.
I tried removing the packages (from npm and XCode), reinstalling them with npm install --save... But the errors are still here.

I don't understand since I got it to work last time and I only updated the packages :-(

@leggomyfroggo
Copy link
Contributor

0.0.3 didn't change either of those components, so there may be something else going on here. Make sure the version on the react-native-fbsdklogin and react-native-fbsdkcore dependencies in your app's package.json file are at 0.0.3.

Failing that, uninstall the packages, then run:

npm install --save react-native-fbsdklogin@0.0.2
npm install --save react-native-fbsdkcore@0.0.2

To uninstall the previous versions and ensure that they're still working.

@tnguyen42
Copy link
Author

Actually I've been able to make everything work with the same method than before... By adding fbsdkshare. But I can't explain anything.
Maybe we should leave this issue open to see if anyone has the same problem or if it's just me...

Edit: and when I add

var FBSDKShare = require('react-native-fbsdkshare');

I get the same bug again: require unknown module FBSDKShareButton.ios.js.

I think there must be something wrong going on...

@tnguyen42
Copy link
Author

Any news? I know the plugin is pretty new, but am I still the only one who has a problem running the libs independently?
(by the way, share still isn't working :/ )

@chirag04
Copy link

i can't even get to compile it.

@yelled3
Copy link

yelled3 commented Aug 24, 2015

i'm using

"react-native-fbsdkcore": "0.0.4",
"react-native-fbsdklogin": "0.0.4",

and I still get:

'Warning: Native component for "RCTFBSDKLoginButton" does not exist'

and of course the login button doesn't work.

@philikon @cphackm

I'm guessing either the build is still broken or I messed something in the FBSDK configuration.
in either case, it would be great if you can update the readme so it would be clear...

@philikon
Copy link
Contributor

Thanks for your comments, everyone. It's best to start out filing a new issue rather than piling onto an existing one. It's always easier to merge tickets after the fact when we realize they're the same issue. It's harder to keep track of different problems within the same thread. When you do file a ticket, please include detailed steps to reproduce -- "I can't even get to compile it" doesn't give us much insight into what exactly is broken for you and how you got there. Also please check out the Sample app and ensure you can build and run that. If you can, the problem is likely with your build configuration.

@chirag04
Copy link

@philikon Sorry i was not descriptive enough. I will create a separate issue with more details.

@philikon
Copy link
Contributor

@tnguyen42, do you still have any problems here? I'm closing this for now, please reopen with detailed error messages if you're still seeing problems.

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

No branches or pull requests

5 participants