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.
run this command this command will globally install protoc-gen-js
npm install -g protoc-gen-js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With