decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
440 stars 131 forks source link

Error: jsonld@https://github.com/digitalcredentials/jsonld.js.git#commit=afa0062460b987bd42887b3a294cf0e0a0e5bde7: Manifest not found #1407

Open theblockstalk opened 3 months ago

theblockstalk commented 3 months ago

Bug severity 4 - afecting anyone using @veramo/credential-w3c that uses yarn berry (v2+) as package manager

To Reproduce

npm init
yarn
# all good
yarn set version 4.3.1
yarn
# still all good up to here...
yarn add @veramo/credential-w3c

Observed behaviour

dev@dev-VirtualBox:~/Downloads/my-app$ yarn add @veramo/credential-w3c
➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: jsonld@https://github.com/digitalcredentials/jsonld.js.git#commit=afa0062460b987bd42887b3a294cf0e0a0e5bde7: Manifest not found
    at cE.find (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:140:120099)
    at async /home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:520:11979
    at async Object.xZe (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:140:53732)
    at async B2.resolve (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:520:11940)
    at async Pd.resolve (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:141:1451)
    at async Pd.resolve (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:141:1451)
    at async /home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:210:7249
    at async Yy (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:140:53795)
    at async Z (/home/dev/.cache/node/corepack/v1/yarn/4.3.1/yarn.js:210:7231)
➤ YN0000: └ Completed in 5s 524ms
➤ YN0000: · Failed with errors in 5s 583ms

Expected behaviour Package installs

Additional context See https://github.com/digitalcredentials/jsonld-signatures/issues/8

Versions (please complete the following information):

theblockstalk commented 3 months ago

Solved by adding the following to package.json

  "resolutions": {
    "@veramo/credential-ld": "5.6.0"
  }
theblockstalk commented 3 months ago

Also can be solved with

package.json

"resolutions": {
        "jsonld": "link:./node_modules/@digitalcredentials/jsonld",
    }
mirceanis commented 3 months ago

Also can be solved with

package.json

"resolutions": {
        "jsonld": "link:./node_modules/@digitalcredentials/jsonld",
    }

I was under the impression that you are already doing this

mirceanis commented 3 months ago

@theblockstalk thanks to your efforts I set up a troubleshooting guide on veramo.io

See https://github.com/uport-project/veramo-website/pull/147

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.