verida-js: [verifiable-credential]: version error in did-jwt dependency

Problem:

I tried to link the @verida/verifiable-credentials packages locally in my machine in order to test with on of our demos,

but it an throws error which prevents the vue app to start.

previous did-jwt version 5.12.1. downgraded to 5.7.0 still having same issues

Screenshot 2021-12-12 at 07 36 49

How to reproduce the error

  • Cd to the verifiable-credential folder
  • Yarn link @verida/verifiable-credentials in the folder
  • Clone the credential-scanner-demo and check to 1-update-libraries branch
  • Yarn link @verida/verifiable-credentials
  • Start the demo app npm run serve

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (27 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll wait for @cmcWebCode40 to confirm this he can use credential-scanner-web, but I believe this issue can be closed.

The issue is caused by a double question mark "??" which is ES2020 syntax. For some reason, that isn’t being compiled correctly.

We should that fix issue and then use the latest versions of the did-jwt and did-jwt-vc libraries.

@kalanamt will find a solution 😃

Hey @kalanamt adding you to this because we’d like you to look at this at some point (not an immediate priority)