-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Small issues getting up and running with js-ipfs #93
Comments
Good catch!
Could you confirm which Node.js and npm versions you are using?
Which go-ipfs version did you use it for init? jsipfs is compatible with the repo version 3, which is generated by go-ipfs 0.4.0. You can check your repo version with: > cat ~/.ipfs/version
3
Currently, you have to use webpack, but we are working on a solution(notes) to make it work with any kind of bundler by exposing a es5 compatible version that has already all the shims you need. |
Thank you for the detailed information, I hope this will be useful to more devs interested to get started with ipfs. I'm trying to do exactly this: https://github.com/ipfs/ipfs.js/blob/master/README.md Is that already possible?
node v5.8.0 I installed js-ipfs v0.4.4 in a new directory, running ./node_modules/.bin/jsipfs I'm missing 'fs-blob-store'
I had repo v 2, I have the same issues:
if run a second time
I tried browserify because it was mentioned in js-ipfs-api, using webpack now but the bundle throws an error, more below. I want to download an object using js-ipfs in the browser. This is my
Is this code the correct way to do it? If I run
This is my webpack.config.js inspired from the js-ipfs karma.conf.js
Opening
But forge is installed (in node_modules), do I need to
Do I need to launch a daemon before running Thanks again for your help and developing this awesome protocoll! |
@diasdavid I know you've been quite busy, just a little bump here to see if you can help me get this working, much appreciated! |
@diasdavid note note. @upfs thanks for the ping; sorry, we've been really busy the past few days. I'll make sure @diasdavid gets to this. :) |
Awesome, thank you so much! I saw all the great progress you've accomplished over the past few days!! |
@upfs sorry for the delay in getting back to you. I'm taking just a bit more time because we actually hit the issues you are having some many times, that we decided to clean our assets pipeline so that users can require our modules without having to go through all the config steps. News soon ™ :) |
👍 thanks! looking forward to getting going with js-ipfs |
@upfs sorry for the lack of news here. Getting it ready for prime time has been taking a bit more than I initially expected, since we have a lot of dependencies in the project and they all need to be updated. Is this currently blocking you? What is your timeline? Again, apologies for the wait |
@diasdavid no worries, I appreciate the effort. I was more wondering if it is already supposed to work and I'm doing it wrong or if it's not working yet at all. I'm happy to help where I can, if you can identify an introductory issue for me I'd be happy to tackle it .. |
Thank you for understanding :) Have you read the entry on the Captain.log? It lists several issues you can help on :) |
@upfs apologies for taking so long, but good news here! With the new version (0.4.6) You should be able to require js-ipfs and do not need to do any magic when it comes to webpack shims now :) Hope this makes the process way less cumbersome //cc @dignifiedquire |
Sweet! @diasdavid now for senselessly modular abuse of power |
@upfs how are your experiments with js-ipfs? :D |
Haven't tried anything yet, is there an easy getting started guide now? :-) |
@upfs how are your experiments? |
Hey @upfs how has it been? Have you tried this again? |
@diasdavid sorry for droppping of the earth like this, we were really hot about js-ipfs and since it wasn't quite ready we somewhat moved on, I'll carve out some time soon and give it another whirl, thanks for being on top of this. Is there an easy getting started guide now so I don't need to dig through the sources? :-) |
hi @upfs you can check https://github.com/ipfs/js-ipfs#ipfs-core-examples-use-ipfs-as-a-module and the example made by @SidHarder too at #576 Closing this one, should be easier now with version 0.18.0. Closing this one, let us know if you find any other hurdle :) |
I want to get up on speed with js-ipfs and ran into a few small issues.
reads
"main": "src/index.js"
I changed it locally to"main": "src/ipfs-core/index.js"
to be able to follow the README usage:otherwise yields error: ipfs module not found
Should this be added to package.json?
'fs-blob-store'
Initializing daemon... error listen EAFNOSUPPORT :::4001
if run a second time
Initializing daemon... This repo is currently being used by another daemon
Then I
rm -r ~/.ipfs
andipfs init
using go-ipfs, but can't get jsipf daemon working because of the EAFNOSUPPORT errorI want to run js-ipfs daemon in the browser, but can't even get it to work in node. Is it usable to a degree even if just for basic operations like fetching objects? I tried browserify but get all sort of dependency issues like:
Error: Cannot find module 'buffer!./pb/crypto.proto'
That I'm not sure how to resolve.
Thanks for any pointers on how to get js-ipfs daemon up and running, ideally in the browser!
The text was updated successfully, but these errors were encountered: