-
Notifications
You must be signed in to change notification settings - Fork 347
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
Can't get it working #13
Comments
This worked for me:
I had to prefix the plugin path with Should I submit a PR for the readme? |
Huh, I hadn't seen the |
Thanks @Daniel15 ! |
I was making auth system in the same folder as the proto file is.
|
thank you also worked for me |
I have been trying to do that with a personal project it´s only the gateway im not doing the microservice, but the terminal returns me this: this is what I put in the terminal: protoc --plugin=protoc-gen-ts_proto=.\node_modules.bin\protoc-gen-ts_proto.cmd --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/product.proto and this is the response: And it says that may be doesn´t can find the protoc-gen-ts_proto file, but if I look for the protoc-gen-ts-proto file i found it in ./node_modules/bin/protoc-gen-ts_proto.cmd I also tried adding --proto_path, but says the same problem $ protoc --plugin=protoc-gen-ts_proto=.\node_modules.bin\protoc-gen-ts_proto.cmd --ts_proto_out=./ --ts_proto_opt=nestJs=true --proto_path=./proto ./proto/product.proto --ts_proto_out: protoc-gen-ts_proto: The system cannot find the file specified. |
I'm trying to see if this project will generate TypeScript definitions for my Protobuf types (sounds like it will). However, I can't seem to get it working. I tried a command similar to the one in the readme, which gave me:
After reading protocolbuffers/protobuf#3923, I tried
protoc-gen-ts_proto.cmd
as the plugin path, which gave me a different error:Any ideas?
The text was updated successfully, but these errors were encountered: