@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:
npm inpm run startDid the same, with yarn:
yarnyarn start./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:
rm -rf node_modulesnpm inpm run startFailed 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.
Most helpful comment
Let's consider this done (as a technical prototype). I will create a new ticket for the proper implementation.