-
Notifications
You must be signed in to change notification settings - Fork 26
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
Does not work in react-native (because it uses node.js libraries) #45
Comments
Hey @Syed-Kashan-Adil, sorry to hear you're running into a bug. Could you describe how you're running this code or give instructions on how to reproduce the problem? I'm not familiar with that error message, although I've found some info here: zetachang/react-native-dotenv#39 |
I am just importing ssb-client and call it. Code gets crash with above mentioned error. const ssbClient = require("ssb-client"); }) |
I see the cc: @dominictarr, this is meant to work in a browser as well yeah? |
I am working on react native. Can I run this on node js mobile? |
I believe so, but I'm not sure. |
Ok. Thank u so much |
hm, looks like this would be a problem using from my perspective, at the moment the Scuttlebutt stack only explicitly supports the @Syed-Kashan-Adil: is it possible for you to publish a reproducible example that we could play with, to see the error in detail and explore how we might get things working? |
looking at Manyverse, as far as i can tell there the core Scuttlebutt stack runs inside looks like this could be a possible solution: https://github.com/philikon/ReactNativify:
/cc @staltz |
yes, browserify put a huge engineering effort in to make node style modules work in the browser. (I did some of that work). browserify works for most ssbc modules, so hopefuly that babel plugin works. |
Two modules are fundamental to enable using ssb client libraries in React Native: |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Unable to resolve module
path
from/Users/mtahir/Desktop/scuttlebut/node_modules/ssb-client/index.js
: Modulepath
does not exist in the Haste module mapThe text was updated successfully, but these errors were encountered: