-
Notifications
You must be signed in to change notification settings - Fork 65
Module not found: Can't resolve 'multicodec/src/name-table' #687
Comments
The issue appears to be tied to the ipfs-bitswap library which is a 3box dependency. It is referencing the |
Thanks @jehunter5811, I'm not sure why this is happening for you. What does your build process look like? Perhaps @oznekenzo can provide some help here! |
I just tried again with a fresh project. Here's the flow:
In app.js, simply adding the following line causes this error as soon as the app is run:
|
The version of ipfs-bitswap should be updated to 0.26.2 to fix this issue, they released a hotfix to address it (https://github.com/ipfs/js-ipfs-bitswap/releases/tag/v0.26.2). It seems that updating to ipfs 0.40.0 should fix the issue (https://github.com/ipfs/js-ipfs/releases/tag/v0.40.0) |
A similar problem I experienced was with a depency updating a file from .js to .json and the file type was not accepted in the webpack configs, had to update to include json:
|
@jcastro-geodb Thanks for the info! We're still hesitant to update the js-ipfs version at this point since we need to make sure it doesn't break anything in OrbitDB. Hopefully the problem can be solved by what @oznekenzo suggested. Lmk if there are still any issue here! |
After further inspection, the fix I suggested was for an issue in the same library but with a different file: |
@oznekenzo is correct here. Quick fix is to run |
We are currently working on a fix for this by updating ipfs to the latest version. |
Hey @oed 👋- has this been addressed in the latest release? update: nevermind looks like that PR is still open. |
@adamsoffer yeah, it's still not released. Aiming to have it out this week. If you really need it right now you can try |
This is fixed in the new version of 3box-js since ipfs was updated to the latest version. |
Describe the bug
After installing 3box (npm i 3box) and requiring it in a React project (const Box = require('3box')), the module error referenced is thrown:
Module not found: Can't resolve 'multicodec/src/name-table'
I tried to manually install the multicodec module but that didn't resolve the problem. Downgrading to 1.13.2 (which was the last version I worked with) allows me to keep working, but I'd like to work on the most recent release.
I'm on MacOS Catalina. Error happens across all browsers.
The text was updated successfully, but these errors were encountered: