Now I am tring to generate typescript files from .proto.
I used ts-proto for this.
command that i used for this is:
protoc –plugin=protoc-gen-ts_proto=”.node_modules.binprotoc-gen-ts_proto.cmd” –ts_proto_out=./src/proto/ -I. src/proto/kubemq.proto
But I got this error:
‘Error: Cannot find module ‘./build/plugin’
This is happened there is so such file or module in ts-proto file.
How to solve it?
I changed the content of protoc-ts-gen_proto to require(‘./build/protos/google/protobuf/compiler’)
So the error has removed but there is no generated file.
john smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1