ts-protoc-gen icon indicating copy to clipboard operation
ts-protoc-gen copied to clipboard

d.ts files not generated

Open onthegit opened this issue 4 years ago • 4 comments

Hello,

when I run the following command protoc --plugin=protoc-gen-ts=/usr/local/bin/protoc-gen-ts --js_out=import_style=commonjs,binary:. --ts_out=service=grpc-web:. -I=. blog.proto

only two files are generated: blog_pb.js blog.ts

there are no d.ts files generated. protoc is v3.14.0 protoc-gen-ts is 0.3.9

onthegit avatar Jul 19 '21 23:07 onthegit

Os: Linux Fedora

Blog.proto:

syntax = "proto3";

 message GetPostIn {
    	string Path =1;
    }

    message GetPostRet {
	    bool Success=1;
	    string Msg=2;  
	    string Post=3;
    }

    service BlogService {
        rpc GetPost(GetPostIn) returns(GetPostRet);
    }

onthegit avatar Jul 31 '21 20:07 onthegit

I'm getting this same issue.. the ProtoName_grpc_pb.js and ProtoName_pb.js files are getting generated but then only a single ProtoName.ts file

jluttrell avatar Oct 05 '21 21:10 jluttrell

wow nvm... it was because I was using protoc-gen-ts and not ts-protoc-gen. 🤦‍♂️

jluttrell avatar Oct 06 '21 18:10 jluttrell

I was experiencing the same issue. thanks

zzzz465 avatar Feb 05 '22 14:02 zzzz465