decentralized-identity / did-jwt-vc

Create and verify W3C Verifiable Credentials and Presentations in JWT format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Unable to resolve package in CommonJS

nickreynolds opened this issue · comments

Current Behavior

When I try to "import" this package using const { createVerifiableCredential } = require("did-jwt-vc") the `createVerifiableCredential object is undefined.

Minimal repo to reproduce this error can be found here: https://github.com/nickreynolds/test-did-jwt-vc

Expected Behavior

Should resolve package correctly

Environment Details

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • node/browser version: example repo is node.js, but problem exists in browser as well. Seems to be ESM vs CommonJS related, not platform-specific
  • package version: did-jwt-vc@3.1.0

can ignore this issue, was just at typo 😅