Closed hylim-tech-lover closed 9 months ago
This is indeed a bug and I'm surprised that pnpm didn't cause the build to break.
The fix should be easy, as you suggested. If you plan to propose a PR with the fix, please include the updated pnpm lock file.
P.S. Kudos for such a detailed issue 🚀!
Will make the PR ASAP.
Tqvm.
Bug severity 3
Describe the bug While using
5.5.4-next.25
veramo dependencies to implement coordinate mediation protocol in my application, apparently that some of the underlyingchild dependencies
[will be elaborated below] has switched to useethers
as their dependency but are missing from their correspondingpackage.json
configuration.Therefore, it will fail if we attempt to use them separately as individual node modules.
To Reproduce Steps to reproduce the behaviour:
Create empty folder with NodeJS installed (version stated below) and run
npm init
to create apackage.json
.Add the example dependencies to
package.json
:Run
npm install
to install all dependenciesCreate
tsconfig.json
and insert the following:Create
setup.ts
and insert the following:Create
get-all-mediation.ts
and insert the following:Run
npm run esrun get-all-mediation.ts
at project root directory and fails with error shown in Observed behaviourObserved behaviour
Expected behaviour Success message without dependency error
Short term Fix / Remediation
npm install ethers
at project root directory.package.json
should be updated as shown below:ethers
as dependency, all veramo modules ran as expected. Despite solving this with the temporary workaround, however it is less than ideal as theethers
version might cause breaking changes.Suggestion
ethers
into the impacted modules inpackages
folder. For example:@veramo/utils
https://github.com/decentralized-identity/veramo/blob/462735d138bc4984c0fcf3f72ca7d49e3187ceb7/packages/utils/package.json#L12-L25The following are the other modules that use
ethers
as dependency:I would be gladly to make the necessary changes as PR if it is deemed acceptable. Of course would be more than happy to accept any feedbacks on such approach.
Additional context
packages
folder albeit no active updates recently.Versions (please complete the following information):
5.5.4-next.25
NA
v21.1.0