-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"--js_out: options: mode is required" error on code generation #1251
Comments
Thanks so much for bringing this up! Will check and get back! Thanks! :) |
Found out more details :) This is actually an intentional change, as announced here: A new protoc binary will be provided separately at https://github.com/protocolbuffers/protobuf-javascript to provide For now, please use the v3.20.1 (link) release of the protoc binary.. Thanks for your understanding! :) |
A new separate JS compiler is now provided by protobuf-javascript: I'll update the documentations to point to it instead :) |
You need to install protoc-gen-js globally to generate gRPC code in javascript using bellow command Then, bellow command to generate gRPC code |
Using protoc v21.0 with grpc-web v1.3.1 will yield error "--js_out: options: mode is required". Downgrading to protoc v3.20.1 will temporarily solve this issue.
Here's my full protoc command:
protoc -I=./ Protos/test.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=typescript,mode=grpcwebtext:.
The text was updated successfully, but these errors were encountered: