Closed tnkhanh closed 2 years ago
Hi, I'm just testing out ethr-did but the most simple code doesn't work for me:
ethr-did
const EthrDID = require("ethr-did"); const keypair = EthrDID.createKeyPair();
It gives me
TypeError: EthrDID.createKeyPair is not a function
I have Node 16.15 , npm8.5.5 and ethr-did 2.2.2
Try const { EthrDID } = require("ethr-did"); instead. Or import { EthrDID} from 'ethr-did' as it says in the Readme
const { EthrDID } = require("ethr-did");
import { EthrDID} from 'ethr-did'
Thanks! That works!
Hi, I'm just testing out
ethr-did
but the most simple code doesn't work for me:It gives me
I have Node 16.15 , npm8.5.5 and ethr-did 2.2.2