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

npm update [email protected] requires a peer of continuation-local-storage@~3 but none was installed #2

Open
jcsjohnson opened this issue Mar 2, 2016 · 8 comments
Labels

Comments

@jcsjohnson
Copy link

Unable to require eway-rapid into my react-native program and I get the following on installing eway-rapid:

npm update [email protected] requires a peer of continuation-local-storage@~3 but none was installed

This is the simulator screen shot, which is just completely unrelated. eway-rapid is the only module I've installed that has this problem.

simulator screen shot 1 mar 2016 9 42 35 am

@incarnate
Copy link
Member

Thanks for the bug report!
It looks like this is a problem with request-promise (refer to request/request-promise#70). I'll update the dependency to 2.0 and hopefully that should resolve the problem (without breaking anything else).

@incarnate incarnate added the bug label Mar 3, 2016
@incarnate
Copy link
Member

I've just pushed v1.2.1 to npm which has an updated request-promise dependency - can you please give that a try @jcsjohnson and see if it resolves the problem?

@jcsjohnson
Copy link
Author

Thanks @incarnate.

On re-installing I did not get the warning anymore, but I get a new error. I will try a few things to see if I can get it working.

simulator screen shot 3 mar 2016 6 13 33 pm

@incarnate
Copy link
Member

Thanks for the update!

request-promise version 2 no longer requires cls-bluebird, so it may be a caching issue. Please let us know how you go debugging.

@jcsjohnson
Copy link
Author

Ya my first thought was clearing cache and I've tried many many other things including rebuilding, but continue to get the same error even with new projects.

Someone suggested this may not work with react-native... I don't really have any other ideas at this time. Let me know if you have any suggestions. Thanks.

@jcsjohnson
Copy link
Author

eWay have reviewed this post and indicated that the iOS-SDK does not work with react-native. This is eway-rapid-node though. Am I missing something? Shouldn't this work with react-native? Otherwise how to implement eWay using react-native?

@incarnate
Copy link
Member

The support team might have been a gotten a bit mixed up if you said you were developing an iOS app.

In theory there the Node.js SDK should work, but it hasn't been tested with react-native before (and I don't have a Mac to test with which makes it a bit harder). Two things I can suggest:

  1. If you haven't already, try installing cls-bluebird - maybe the dependency can be satisfied, however it occurs
  2. Skip using the Node.js SDK - the eWAY Rapid API is fairly easy to integrate with, I've an example gist using restler that provides a demo.

@jcsjohnson
Copy link
Author

Ya they definitely seemed a bit confused, but I never told them I was making iOS app. I specifically said using react-native and referred them to this thread. They reviewed this thread and came to their conclusion that it would not work with react-native.

Installing cls-bluebird did not resolve it although I'm now getting the original error again. I've given the second option a go, but still no-go...

I've switched to using braintree for payment gateway.

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

No branches or pull requests

2 participants