Open Neurone opened 8 months ago
Hi @Neurone. Me and @svetoslav-nikol0v both tried to reproduce the problem but for our cases the problem doesn't occur. Can you give us more context on what exactly are you trying to do and why. Also a step by step guide would be very useful.
From my side what I did
❯ npm --version 9.5.1 ❯ node --version v18.15.0 ❯ task --version Task version: v3.33.1 (h1:JJSRANHH7RQrr5Z2CTvSnTH7iWlfBlKV2W2O0JiZoLk=)
Hi @agadzhalov I'm trying to build the SDK. The steps I followed and the error are in the description. I think the problem is in the import to the proto files.
Did you try from a clean repo?
I found the problem and probably the reason you don't see it if you are on Linux. I suspect this is also the reason behind some strange behaviors we are experiencing recently (i.e., https://github.com/hashgraph/hedera-sdk-js/issues/2140 or https://github.com/hashgraph/hedera-sdk-js/issues/2138).
protobufjs@7.2.6
while the same fresh repo on Ubuntu uses the protobufjs@7.2.5
protobufjs@7.2.6
in Ubuntu with pnpm -i protobufjs@7.2.6
from the ./packages/proto
folder, and the error also appears on Ubuntu now.From what I understood it works for you on Ubuntu, but it fails with macOS? Is that correct? Also I've tried to reproduce it on macOS, but still couldn't. Following these steps can you tell me if I am missing something to reproduce it?
git clone git@github.com:hashgraph/hedera-sdk-js.git
git checkout v2.41.0
package.json
is protobufjs@7.2.5
pnpm install protobufjs@7.2.6
task build
-> still successful Yes, I can build on Ubuntu if I use protobufjs@7.2.5, but I cannot build on Ubuntu nor MacOS if I update to protobufjs@7.2.6. If I move back to protobufjs@7.2.5 I can build also on MacOS, and that means we are building the protobufs not correctly.
To apply the change, it you need to install the dependency from the ./packages/proto
folder, not the root folder.
Thank you for the detailed explanation, we managed to reproduce it. Soon we will start investigating it
Description
When running
task build
the process stop when searching forsrc/proto/mirror/basic_types.proto
. That files is actually not in that folder, and it is instead insrc/proto/serivces/basic_types.proto
. I assume the problem is with the import done bysrc/proto/mirror/consensus_service.proto
.Steps to reproduce
Additional context
Hedera network
other
Version
v2.41.0
Operating system
macOS