digitalbazaar / did-method-key

A did-io driver for the DID "key" method
Other
25 stars 10 forks source link

TypeError: Cannot read property 'modes' of undefined #23

Closed OR13 closed 2 years ago

OR13 commented 4 years ago

Now using node v12.16.0 (npm v6.14.4)

did.actor@1.0.0 /Users/orie/Desktop/Code/Transmute/did.actor
└── did-method-key@0.6.1 
const didKeyDriver = require("did-method-key").driver();
 FAIL  __tests__/make-degree.spec.js
  ● Test suite failed to run

    /Users/orie/Desktop/Code/Transmute/did.actor/node_modules/x25519-key-pair/node_modules/node-forge/lib/aes.js:1
    TypeError: Cannot read property 'modes' of undefined
    at Object.<anonymous> (node_modules/x25519-key-pair/node_modules/node-forge/lib/aes.js:254:43)
dmitrizagidulin commented 4 years ago

Thanks @OR13.

OR13 commented 4 years ago

downgrading to did-method-key@0.5.0 solved this for me.

dmitrizagidulin commented 2 years ago

Should be fixed in latest (v2.0), closing.