Skip to content
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

d.ts files not generated #282

Open
onthegit opened this issue Jul 19, 2021 · 4 comments
Open

d.ts files not generated #282

onthegit opened this issue Jul 19, 2021 · 4 comments

Comments

@onthegit
Copy link

onthegit commented Jul 19, 2021

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
Copy link
Author

onthegit commented Jul 31, 2021

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);
    }

@jluttrell
Copy link

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
Copy link

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

@zzzz465
Copy link

zzzz465 commented Feb 5, 2022

I was experiencing the same issue. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants