Closed outSH closed 10 months ago
I recommend migrating to the new, purely JS implementation instead because the legacy grpc
package has been deprecated for a long time now:
@6r1d @0x009922 Any updates regarding this? It's blocking our CI at the moment. Let us know if this package is still supported and can have grpc fixed / updated in the nearest future. If it's deprecated (or is about to be), then we could remove support for Iroha V1 from cacti.
Hi @outSH I cannot help you with the functionality related to Iroha 1, unfortunately.
@6r1d, what about support of Iroha 1 in cacti?
@outSH I will update you as soon as I get the decision on that matter.
@6r1d Thanks for looking into that, any news so far?
@outSH, I'm still looking for someone who could help.
@6r1d This might help a little bit (but do let me know if it doesn't). The migration from grpc
to grpc/grpc-js
is meant to be fairly straightforward. What I mean by that is that when I was migrating parts of the Cacti codebase the same way, 99% of the time the only thing I needed to do was to replace the package imports in the code and everything would just work fine out of the box afterwards. There was no need to refactor the code and risk introducing new bugs, etc.
@6r1d I just ended up sending in a quick PR. It's a pretty simple change. I verified that it works with our Cacti Iroha connector tests. See my PR: https://github.com/hyperledger/iroha-javascript/pull/182
TBH, I am not sure why this error occurs in runtime, because grpc
library is not imported from what I can observe in source code.
However, grpc
is imported in a .d.ts
file, which means it must be a production dependency, not a dev one.
With this in mind, I've approved #174.
upd: I am blind, just saw #182, nevermind.
@6r1d @0x009922 Hi, do you plan to release a version containing this fix?
@6r1d @0x009922 any news regarding releasing new version with that fix? :)
@outSH, created a task for it: #189
grpc
is a dependency ofiroha-helpers
(irohaV1) but it's listed underdevDependencies
instead ofdependencies
. This causes error when user doesn't have grpc installed. Issue occured at our project (Hyperledger Cacti) when we updated from deprecated grpc to grpc-js.To reproduce initialize empty TS nodejs project,
npm i iroha-helpers
(only), compile the following:And run. Error printed: