0

Trying to use google protocol buffer in my node.js web server with this documentation.

When running the following command:

protoc --js_out=import_style=commonjs,binary: ServiceMessage.proto

I received:

--js_out: : Unknown option: import_style

Any suggestions?

Cheers, Itay

7
  • @zangw You suggest a different module, I'll give it a try and update. Thanks! Commented Mar 22, 2016 at 14:32
  • 1
    Per this discussion, this feature is added recently, does protoc you used is latest verion? Commented Mar 22, 2016 at 14:46
  • @zangw libprotoc 3.0.0 Commented Mar 22, 2016 at 14:50
  • 1
    Version 3.0.0 is released in 2015-12-30, you may get the latest codes of protobuf... Commented Mar 22, 2016 at 14:55
  • 1
    Per this commit history, it is changed at Feb 20, I think you should update your codes with latest one. Commented Mar 22, 2016 at 15:04

1 Answer 1

1

Per this discussion line, the js_out is added recently and merge at Feb 20, you may updated your protoc with latest codes from protobuf.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.