Safe-react: [Address Book] Persist addresses using 3Box

Created on 18 Dec 2019  路  7Comments  路  Source: gnosis/safe-react

Major

Most helpful comment

Let's consider this done (as a technical prototype). I will create a new ticket for the proper implementation.

All 7 comments

@lukasschor, @mikheevm... I've been trying to use/install the 3box-js SDK, but I'm constantly running into the error: Module not found: Can't resolve 'multicodec/src/name-table' in '/[...]/safe-react/node_modules/ipfs-bitswap/src/types/message'

There's an open issue around this: https://github.com/3box/3box-js/issues/687

Funny thing is that I tried with the boilerplate app is referenced in this blog post: https://medium.com/3box/building-a-distributed-appstore-with-3box-ef7345aab34e

Steps:

  • clone
  • npm i
  • npm run start
  • result: worked fine

Did the same, with yarn:

  • clone
  • yarn
  • yarn start
  • result:
./node_modules/ipfs-bitswap/src/types/message/index.js
Module not found: Can't resolve 'multicodec/src/name-table' in '/[...]/metamask-3box-boilerplate/node_modules/ipfs-bitswap/src/types/message'

So I tried using npm to run the safe-react project but I'm still getting the same error and new ones.
Steps:

  • remove deps: rm -rf node_modules
  • npm i
  • npm run start
  • result:
Failed to compile.

./node_modules/ipfs-bitswap/src/types/message/index.js
Module not found: Can't resolve 'multicodec/src/name-table' in '/[...]/safe-react/node_modules/ipfs-bitswap/src/types/message'

./config/polyfills.js
Module not found: Can't resolve 'promise/lib/es6-extensions.js' in '/[...]/safe-react/config'

./config/polyfills.js
Module not found: Can't resolve 'promise/lib/rejection-tracking' in '/[...]/safe-react/config'

@fernandomg from the issue it looks like you can use the older version, or wait for the fix to be released

@mikheevm this does the trick: https://github.com/3box/3box-js/issues/687#issuecomment-571276610 but I didn't get the time to continue working on this.

Basically install a previous multicodec version along with 3box

@lukasschor does it still make sense to have this issue in Milestone 1?

@pablofullana Why do you think it does not make sense to have it in the milestone?

@lukasschor No worries, I mixed up with another issue. All good.

Let's consider this done (as a technical prototype). I will create a new ticket for the proper implementation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pablofullana picture pablofullana  路  3Comments

francovenica picture francovenica  路  6Comments

lukasschor picture lukasschor  路  5Comments

Agupane picture Agupane  路  3Comments

katspaugh picture katspaugh  路  5Comments