ts-protoc-gen icon indicating copy to clipboard operation
ts-protoc-gen copied to clipboard

protobuf v21 can't find protoc-gen-js

Open gitpushdashf opened this issue 2 years ago • 3 comments

When upgrading from protoc 3.20.1 to 21.1, I get this:

protoc-gen-js: program not found or is not executable

If I revert, with the exact same protoc command, it goes away.

Is some change in ts-protoc-gen needed for protobuf v21.1, or maybe a different setting?

Thank you!

gitpushdashf avatar Jun 02 '22 18:06 gitpushdashf

We're having the same problems. Currently can't upgrade the protoc version because of this. Really looking forward to this fix. I would love to help if I can in any way :)

elig-salt avatar Jun 27 '22 12:06 elig-salt

Probably due to this: https://github.com/protocolbuffers/protobuf-javascript/issues/127

elig-salt avatar Jun 27 '22 12:06 elig-salt

A global install of protoc-gen-js fixes it.

npm install -g protoc-gen-js

Although not a long term solution.

AkshatGiri avatar Apr 19 '24 06:04 AkshatGiri