Trying to compile my protos - I need to compile them to use in my react app. But I get this error. I run the command as follows:
cd src/main/proto && protoc -I=. *.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
Where can I find protoc-gen-js? I didn't come across any repo for it.
protoc. Are you running a recent version ofprotoc? What doesprotoc --versionyield? See releases.protocdoes match e.g.--go_outtoprotoc-gen-gofor external plugins but, it should not need to do this for JavaScript.libprotoc 3.21.1protoc3.19.4 and that includesprotoc-gen-js. You could revert to that, or chop through versions to find where it 'broke" (perhaps try 21.0?)