improbable-eng / ts-protoc-gen

Protocol Buffers Compiler (protoc) plugin for TypeScript and gRPC-Web.
Apache License 2.0
1.37k stars 172 forks source link

protobuf v21 can't find protoc-gen-js #302

Open gitpushdashf opened 2 years ago

gitpushdashf commented 2 years ago

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!

elig-salt commented 2 years ago

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 commented 2 years ago

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

AkshatGiri commented 7 months ago

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

npm install -g protoc-gen-js

Although not a long term solution.