multiformats / js-cid

CID implementation in JavaScript
MIT License
98 stars 39 forks source link

Module not found: Can't resolve 'multicodec/src/base-table.json' #140

Closed jeffscottward closed 3 years ago

jeffscottward commented 3 years ago

Only seeing .js in that lib

Screen Shot 2021-02-23 at 1 42 54 PM
vmx commented 3 years ago

@jeffscottward There were issues in the past that should be fixed by now. Can you try to upgrade to the latest version of js-cid and see if the issue is still there?

jeffscottward commented 3 years ago

ok i will ping the author - not my pkg

yuhr commented 3 years ago

Seeing this error too. It's not present for me. Aliasing multicodec/src/base-table.js to multicodec/src/generated-table.js is not working.

Screenshot 2021-03-03 at 1 17 41

The error message is like:

    Cannot find module 'multicodec/src/base-table.js' from '../../../node_modules/cids/src/index.js'

    Require stack:
      /path/to/my/project/node_modules/cids/src/index.js
      /path/to/my/project/node_modules/peer-id/src/index.js
      /path/to/my/project/node_modules/ipfs-core/src/index.js
      ...

I'm using:

    "ipfs-core": "^0.5.2",
vmx commented 3 years ago

@yuhr That should be fixed by now. If you update your dependencies (your package-lock.json, you should be good.

yuhr commented 3 years ago

Thanks, I cleaned up everything and reinstalled then the error disappeared.

aschmahmann commented 3 years ago

looks like this issue was resolved