Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Module not found: Error: Can't resolve 'multicodec/src/name-table' #8

Open
siman opened this issue Jul 22, 2020 · 4 comments
Open

Module not found: Error: Can't resolve 'multicodec/src/name-table' #8

siman opened this issue Jul 22, 2020 · 4 comments

Comments

@siman
Copy link

siman commented Jul 22, 2020

I checked out the branch 6-play-track and run these commands:

yarn
yarn start

Output:

ERROR in ./node_modules/ipfs-bitswap/src/types/message/index.js
Module not found: Error: Can't resolve 'multicodec/src/name-table' in '/Users/siman/Work/df/hackfs/orbitdb/web3-workshop/node_modules/ipfs-bitswap/src/types/message'
 @ ./node_modules/ipfs-bitswap/src/types/message/index.js 17:18-54
 @ ./node_modules/ipfs-bitswap/src/decision-engine/index.js
 @ ./node_modules/ipfs-bitswap/src/index.js
 @ ./node_modules/ipfs/src/core/components/start.js
 @ ./node_modules/ipfs/src/core/components/index.js
 @ ./node_modules/ipfs/src/core/index.js
 @ ./index.js
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./index.html] 411 bytes {0} [built]
    [./node_modules/lodash/lodash.js] 530 KiB {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 475 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 546 bytes {0} [built]
ℹ 「wdm」: Failed to compile.
@tijsmaas
Copy link

tijsmaas commented Oct 28, 2020

Caused by a breaking change between multicodec 0.5.0 and 0.5.5, installing multicodec 0.5.0 resolved it for me.

npm install [email protected]

@kvutien
Copy link

kvutien commented Jun 11, 2021

Thank you very much. @tijsmaas

Your hint worked for me too.
It is funny that multicodec and multihash have been introduced to avoid breaking changes in encoding, and kaboom, the npm package to decode multicodec introduces breaking changes in itself :-)

@silkroadnomad
Copy link
Contributor

should be solved in latest PR merge.

@aphelionz
Copy link
Collaborator

PRs were merged, please confirm the fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants