Protocol buffer with node.js - failed to generate js from .proto

谁说我不能喝 提交于 2019-12-12 04:07:53

问题


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


回答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.



来源:https://stackoverflow.com/questions/36156425/protocol-buffer-with-node-js-failed-to-generate-js-from-proto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!