decentralized-identity / veramo

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

did-resolver@next depends on stable core-types, not core-types@next #1352

Closed 0x62 closed 4 months ago

0x62 commented 4 months ago

Bug severity 3

Describe the bug Veramo React example is non-functional at the moment, due to a build issue stemming from the incorrect dependancy. Trying to use @veramo/did-resolver@next throws the error:

No matching export in "node_modules/@veramo/did-resolver/node_modules/@veramo/core-types/build/index.js" for import "schema"

The schema export is available on @veramo/core-types@next, but not in stable release

To Reproduce Steps to reproduce the behaviour:

  1. Follow the React setup guide: https://veramo.io/docs/dev_tools/veramo_react

Observed behaviour Import resolution error for schema in @veramo/core-types

Expected behaviour Successful build

Workaround Add to package.json:

"overrides": {
    "@veramo/did-resolver": {
      "@veramo/core-types": "^5.6.1-next.56"
    }
  }

Versions (please complete the following information):

mirceanis commented 4 months ago

Try to clear your node_modules and build folders and reinstall dependencies. It seems to be a cache issue on your machine, as the package.json declaration in the @veramo/did-resolver@5.6.1-next.56 package is ok: https://www.npmjs.com/package/@veramo/did-resolver/v/5.6.1-next.56?activeTab=code

Please close this issue if you managed to resolve your setup.