You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cids@1.0.2 depends on multicodec "^2.0.1". The issue is that when cids requires multicodec, it gets v2.1.0. In this version, base-table.js exists but not base-table.json. This is confirmed by yarn.lock:
multicodec@^2.0.0, multicodec@^2.0.1, multicodec@^2.1.0:
version "2.1.0"
docid (I assume) specifies multicode explicitly despite not using it anywhere because tries to force CIDS to import the correct version.
The workaround probably works because it puts an incompatible version of muticodec at the root of the node_modules, forcing cids to resolve it's own (presumably compatible) version in it's own node_modules. However, this isn't an ideal workaround.
FrozenKiwi
changed the title
Error: Cannot find module 'multicodec/src/base-table.json'
Error: Cannot find module 'multicodec/src/base-table.json' - yarn
Feb 18, 2021
the way modules are hoisted & imported can mean that cids ends up referencing the wrong version multicodec.
My modules are as below
cids@1.0.2 depends on multicodec "^2.0.1". The issue is that when cids requires multicodec, it gets v2.1.0. In this version, base-table.js exists but not base-table.json. This is confirmed by yarn.lock:
docid (I assume) specifies multicode explicitly despite not using it anywhere because tries to force CIDS to import the correct version.
js-ceramic/packages/docid/package.json
Line 30 in 8cf3a0b
Upgrading cids to a more recent version will fix this issue.
The text was updated successfully, but these errors were encountered: